void Start() { GameObject gameControllerObject = GameObject.FindWithTag("GameController"); if (gameControllerObject != null) { gameController = gameControllerObject.GetComponent <GameController>(); } if (gameController == null) { Debug.Log("Can not find GameController object"); } creationTime = Time.timeSinceLevelLoad; StartCoroutine(ChangeTarget()); energyConsumer.FullEnergize(); }
void Start() { energyConsumer.FullEnergize(); }