예제 #1
0
 private void InsectMiss(Insect insect)
 {
     if (insect.GetComponent <SafeInsect>())
     {
         DangerInsectSmash();
     }
     if (_isLevelComplete)
     {
         LevelComplete();
     }
 }
예제 #2
0
    private void SmashInsect(Insect insect)
    {
        if (insect.GetComponent <SafeInsect>())
        {
            SafeInsectSmash(insect);
        }
        else
        {
            DangerInsectSmash();
        }

        if (_isLevelComplete)
        {
            LevelComplete();
        }
    }