using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CoverFlow : MonoBehaviour
{
public Texture2D refMask;
private List<GameObject> photos = new List<GameObject> ();
private int photosCount = 9;
private int currentIndex=0;
private float MARGIN_X=3f;
private float ITEM_W=15f;
private float sliderValue=4f;
void Start ()
{
loadImages ();
}
void loadImages ()
{
for (int i=0; i<photosCount; i++) {
Texture2D tex=Resources.Load ("photo" + i.ToString(),typeof(Texture2D)) as Texture2D;
photos.Add (PhotoBuilder.GeneratePhotoWithReflect(refMask,tex,i,this.transform));
}
moveSlider(photos.Count/2);
}
// Update is called once per frame
void Update ()
{