public void attack() { attackDirection = (SwipeDetector.SwipeDirection)((int)Random.Range(0, 4)); //Debug.Log("Attacking from "+direction); spellHandle.shoot(); _attackDirection.text = "Attacking from " + attackDirection; StartCoroutine("waitForCounter"); }
public void myLog(SwipeDetector.SwipeDirection direction) { Debug.Log(direction); }
public void counterAttack(SwipeDetector.SwipeDirection direction) { //Debug.Log(attackDirection + " " + defendDirection); defendDirection = direction; hasDefended = true; }