private void AI_Attacking() { timeLeft -= Time.deltaTime; if (timeLeft < 0) { gameController.AI_Attack(); Debug.Log("AI_Attack"); timeLeft = Random.Range(0.0f, 10.0f); } }