// Use this for initialization void Start() { rg = GetComponent <Rigidbody> (); SoundManager.instance.PlayerAttackSound(); player = GameObject.Find("Muki").GetComponent <PlayerCtrl2> (); dir = player.attackDir; }
// Use this for initialization void Start() { tr = GetComponent <Transform> (); playerctr = GameObject.Find("Muki").GetComponent <PlayerCtrl2> (); pat1R = GameObject.Find("Patrols1_R").GetComponent <PatrolPos> (); pat2R = GameObject.Find("Patrols2_R").GetComponent <PatrolPos> (); pat2L = GameObject.Find("Patrols2_L").GetComponent <PatrolPos> (); pat3R = GameObject.Find("Patrols3_R").GetComponent <PatrolPos> (); }
// Use this for initialization void Start() { plct = GameObject.Find("Muki").GetComponent <PlayerCtrl2> (); }