Ejemplo n.º 1
0
        void Init(LevelLogic levelLogic, FoodSpawner foodSpawner)
        {
            this.levelLogic  = levelLogic;
            this.foodSpawner = foodSpawner;

            audioSource = GetComponent <AudioSource>();
        }
Ejemplo n.º 2
0
 private void Init(FoodSpawner spawner)
 {
     spawner.OnFoodSpawned += (GameObject food) => {
         this.food = food.transform;
     };
 }