public PlayerInputController(Player ply)
 {
     controlling = ply;
     keyIdentifiers = null;
 }
Example #2
0
 public void PlayerCollision(Player p)
 {
     if (OnPlayerCollision != null)
         OnPlayerCollision(p);
 }
Example #3
0
        void PlayerCollect(Player p)
        {
            switch (pType)
            {
                case PowerupType.BOMB_UP:
                    p.BombUp();
                    break;
                case PowerupType.FIRE_UP:
                    p.FireUp();
                    break;
                case PowerupType.SPEED_UP:
                    p.SpeedUp();
                    break;
            }

            powerupSoundInstance.Play();

            RemoveThis();
        }