예제 #1
0
    public void PacmanCollide(Collider2D _pacman)
    {
        m_scorer.AddScore(m_scoreVal);
        m_source.PlayOneShot(m_sound);

        Destroy(gameObject);
    }
예제 #2
0
 public void PacmanCollide(Collider2D _pacman)
 {
     m_scorer.AddScore(m_scoreVal);
     m_ghostManager.StartFleeMode();
     Destroy(gameObject);
 }