Example #1
0
 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();
 }
Example #2
0
 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>();
 }
Example #3
0
 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>();
 }