// public Transform BackGround; // public float distance; // public Vector3 backgroundPos; void Start() { instance = this; UISprite background = instance.transform.GetChild(0).GetComponent <UISprite>(); scrollScenes = GetComponentsInChildren <ScrollScene>(); background.depth = -1; }
void Start() { scrollScenes = GetComponentsInChildren <ScrollScene>(); instance = this; }