Beispiel #1
0
 public void PortalProjectileCollision(bool blue, GameObject obj, CollisionDirection collisionDirection)
 {
     if (PortalGun.GetInstance().TrackingMarioPosition)
     {
         PortalGun.GetInstance().GeneratePortal(blue, obj, collisionDirection);
     }
 }
Beispiel #2
0
 public void PortalProjectileFiring()
 {
     if (PortalGun.GetInstance().TrackingMarioPosition)
     {
         Sounds.SoundPlayer.GetInstance().PlaySoundEffect(Sounds.SoundEffectNames.PortalFire);
     }
 }
Beispiel #3
0
 public void PortalProjectileCollision(bool blue, GameObject obj, CollisionDirection collisionDirection)
 {
     //Sounds.SoundPlayer.GetInstance().PlaySoundEffect(Sounds.SoundEffectNames.Win);
     if (PortalGun.GetInstance().TrackingMarioPosition)
     {
         PortalGun.GeneratePortal(blue, obj, collisionDirection);
     }
 }
Beispiel #4
0
 public void Execute()
 {
     if (PortalGun.GetInstance().TrackingMarioPosition)
     {
         if (left)
         {
             new PortalProjectile(true);
         }
         else
         {
             new PortalProjectile(false);
         }
     }
 }