Ejemplo n.º 1
0
    void SetupVales()
    {
        GameObject gameController = GameObject.Find("GameController");

        this.ScriptGameController = gameController.GetComponent <ScriptGameController>();
        this.ScriptDevil          = this.GetComponentInParent <ScriptDevil>();
    }
Ejemplo n.º 2
0
 void SetupValues()
 {
     this.Rigidbody2D          = GetComponent <Rigidbody2D>();
     this.Animator             = GetComponent <Animator>();
     this.AudioSource          = GetComponent <AudioSource>();
     this.ScriptGameController = (GameObject.Find("GameController")).GetComponent <ScriptGameController>();
     this.IsGoingRight         = true;
 }
Ejemplo n.º 3
0
 void Awake()
 {
     currentDay = 5;
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
         this.gameState = enumGameState.UnpausedTimeStopped;
         this.lastState = enumGameState.UnpausedTimeStopped;
     }
 }
Ejemplo n.º 4
0
 void SetupValues()
 {
     this.ScriptGameController = this.GameController.GetComponent <ScriptGameController>();
 }