Exemplo n.º 1
0
 void Start()
 {
     aisword = transform.parent.GetComponent <AISword>();
     if (!aisword.menu)
     {
         player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
     }
 }
Exemplo n.º 2
0
 protected override void Attack()
 {
     if (sword == null)
     {
         sword = GetComponentInChildren <AISword>();
     }
     sword.swing();
 }