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();
    }
Ejemplo n.º 2
0
 void Start()
 {
     energyConsumer.FullEnergize();
 }