void Start() { body = GetComponent<Rigidbody2D> (); mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> (); transform.localScale = new Vector2 (0, 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 (); }
void Start() { body = GetComponent<Rigidbody2D> (); mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> (); notes = GameObject.Find ("Notes"); }
void Start() { mgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> (); }
// Use this for initialization void Start() { gameMgr = GameObject.Find ("GameMgr").GetComponent<GameMgrScr> (); body = GetComponent<Rigidbody2D> (); rotationAngle = gameMgr.rotationAngle; currAngle = rotationAngle * Mathf.Deg2Rad; }