Example #1
0
//	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;
    }
Example #2
0
 void Start()
 {
     scrollScenes = GetComponentsInChildren <ScrollScene>();
     instance     = this;
 }