public override void performAction(GameObject go, bool isLoggalbe) { if (isLoggalbe) { Log(""); } parent.goToPosition(parent.transform.position - parent.enemyPosition.position); parent.decreaseStamina(30); parent.StartCoroutine(WaitSomeTime(2)); }
public override void performAction(GameObject go, bool isLoggable) { if (isLoggable) { Log(""); } if (parent.enemyPosition != null) { parent.shootAt(parent.enemyPosition); } parent.RemoveAction(this); parent.StartCoroutine(WaitSomeTime(1)); }