Ejemplo n.º 1
0
 protected override void OnStartRunning()
 {
     SpawnedFoods = new List <GameObject>();
     TickSystem.AssignTickListener(this, 1);
     FoodPrefab = Resources.Load <GameObject>("Prefabs/SnakeFood");
     base.OnStartRunning();
     Enabled = GameStateSystem.Instance != null && GameStateSystem.Instance.IsPlaying;
 }
 protected override void OnStartRunning()
 {
     TickSystem.AssignTickListener(this);
     base.OnStartRunning();
     Enabled = GameStateSystem.Instance != null && GameStateSystem.Instance.IsPlaying;
 }