Example #1
0
 public override void DecelerationStarted(UIScrollView scrollView)
 {
     if (scrollView.Bounds.Y == 0)
     {
         BottomScroller?.Invoke(this, EventArgs.Empty);
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        bottomScroller = GameObject.Find("Scroller").GetComponent <BottomScroller>();
        startPos       = transform.localPosition.x;
        GameObject objectCopy = GameObject.Instantiate(gameObject);

        Destroy(objectCopy.GetComponent <ScrollBackground>());   //Stop it making more copies of itself
        objectCopy.transform.SetParent(transform);
        objectCopy.transform.localPosition = new Vector3(MyWidth(), 0, 0);
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     btmScroller = GameObject.FindObjectOfType <BottomScroller>();
     player      = GameObject.FindObjectOfType <PlayerControl>();
     SceneSwitch = GameObject.FindObjectOfType <Transition>();
 }