void Awake() { this.managerSounds = GameObject.FindObjectOfType <Manager_Sounds>(); this.managerGame = GameObject.FindObjectOfType <Manager_Game>(); this.managerGameOver = GameObject.FindObjectOfType <Manager_GameOver>(); this.snake = GameObject.FindObjectOfType <Mechanics_Snake>(); MountGrid(); }
void Start() { this.managerScore = GameObject.FindObjectOfType <Manager_Score>(); this.managerGame = GameObject.FindObjectOfType <Manager_Game>(); this.managerSounds = GameObject.FindObjectOfType <Manager_Sounds>(); this.snake = GameObject.FindObjectOfType <Mechanics_Snake>(); this.grid = GameObject.FindObjectOfType <Mechanics_Grid>(); }
private void Start() { this.gameSpeed = baseSpeed; this.managerGameOver = GameObject.FindObjectOfType <Manager_GameOver>(); this.managerSounds = GameObject.FindObjectOfType <Manager_Sounds>(); this.grid = GameObject.FindObjectOfType <Mechanics_Grid>(); this.snake = GameObject.FindObjectOfType <Mechanics_Snake>(); }