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