예제 #1
0
파일: Enemy.cs 프로젝트: Ryty/GeoStrike
    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>();
 }