Example #1
0
    // 판다 한 마리가 죽었을 경우
    public void OneMorePandaInHeaven()
    {
        numberOfPandasToDefeat--;

        // 슈거 올라감
        sugarmeter.ChangeSugar(10);
    }
Example #2
0
 public void Dead()
 {
     animator.SetTrigger(AnimDeadTriggerHash);
     sugarMeter.ChangeSugar(giveSugar);
     Destroy(gameObject, 1);
     isDead = true;
     rb2D.MovePosition(gameObject.transform.position);
 }