Beispiel #1
0
        private void Start()
        {
            var interactableObject = new ListInteractableObject();

            foreach (var o in interactableObject)
            {
                print(o);
            }
        }
Beispiel #2
0
 private void Awake()
 {
     _interactiveObject = new ListInteractableObject();
     _displayEndGame    = new DisplayEndGame(_finishGameLabel);
     foreach (var o in _interactiveObject)
     {
         if (o is BadBonus badBonus)
         {
             badBonus.CaughtPlayer += CaughtPlayer;
             badBonus.CaughtPlayer += _displayEndGame.GameOver;
         }
     }
 }