public void RemoveAi(GameObject aiGameObject) { AiController aiController = aiGameObject.GetComponent <AiController>(); aiController.DestroyAi(); }