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