// Use this for initialization void Start () { GetComponent<Animator> ().speed = 0.1f; _manager = GameObject.Find ("Monks").GetComponent<MonkManager> (); this.OnDeath += () => {GameObject.Destroy(this.gameObject);}; _anim = GetComponent<Animator> (); }
protected override void Start() { base.Start (); monkmng = GameObject.Find ("Monks").GetComponent<MonkManager> (); }
// Use this for initialization void Start() { ResetTimer(); AIs = GameObject.Find("AIs").transform; mm = GameObject.Find("Monks").GetComponent<MonkManager>(); }
// Use this for initialization void Start() { monkmng = GameObject.Find("Monks").GetComponent<MonkManager>(); rb2d = GetComponent<Rigidbody2D>(); velocity = rb2d.velocity; }