Пример #1
0
    private void handleGameMode()
    {
        if (currentGM is GameModeSurvival)
        {
            GameModeSurvival survivalMode = (GameModeSurvival)currentGM;

            survivalMode.HandleEnemyDeath(this);
        }
    }
Пример #2
0
 private void Start()
 {
     boxComp  = GetComponent <BoxCollider2D>();
     gameMode = FindObjectOfType <GameModeSurvival>();
 }