void SetupVales()
    {
        GameObject gameController = GameObject.Find("GameController");

        this.ScriptGameController = gameController.GetComponent <ScriptGameController>();
        this.ScriptDevil          = this.GetComponentInParent <ScriptDevil>();
    }
Example #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;
 }
Example #3
0
 void Awake()
 {
     currentDay = 5;
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
         this.gameState = enumGameState.UnpausedTimeStopped;
         this.lastState = enumGameState.UnpausedTimeStopped;
     }
 }
Example #4
0
 void SetupValues()
 {
     this.ScriptGameController = this.GameController.GetComponent <ScriptGameController>();
 }