Example #1
0
    void Start()
    {
        body = GetComponent<Rigidbody2D> ();
        mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> ();

        transform.localScale = new Vector2 (0, 0);
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> ();

        currSpeed = origSpeed;
        speed = origSpeed;
        body = GetComponent<Rigidbody2D> ();
        body.velocity = new Vector2 (currSpeed, 0);

        pile = GameObject.Find ("Pile");
        animalPFs = new List<GameObject> ();
        animalPFs.Add (animalPF1);
        animalPFs.Add (animalPF2);
        animalPFs.Add (animalPF3);
        animalPFs.Add (animalPF4);

        GenerateChild ();
    }
Example #3
0
 void Start()
 {
     body = GetComponent<Rigidbody2D> ();
     mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> ();
     notes = GameObject.Find ("Notes");
 }
Example #4
0
 void Start()
 {
     mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> ();
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     gameMgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> ();
     body = GetComponent<Rigidbody2D> ();
     rotationAngle = gameMgr.rotationAngle;
     currAngle = rotationAngle * Mathf.Deg2Rad;
 }