Beispiel #1
0
 static public void playEnterCrackedBlock(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (crackedBlockCrack != null)
     {
         crackedBlockCrack.play(target);
     }
 }
Beispiel #2
0
 static public void playPlayerWalkDownBlock(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (playerWalkDownBlock != null)
     {
         playerWalkDownBlock.play(target);
     }
 }
Beispiel #3
0
 static public void playCancelMenu()
 {
     if (cancelMenu != null)
     {
         cancelMenu.play(globalTarget);
     }
 }
Beispiel #4
0
 static public void playDefeat()
 {
     if (defeat != null)
     {
         defeat.play(globalTarget);
     }
 }
Beispiel #5
0
 static public void playMoveMenu()
 {
     if (moveMenu != null)
     {
         moveMenu.play(globalTarget);
     }
 }
Beispiel #6
0
 static public void playVictory()
 {
     if (victory != null)
     {
         victory.play(globalTarget);
     }
 }
Beispiel #7
0
 static public void playDefeatOpening()
 {
     if (defeatStart != null)
     {
         defeatStart.play(globalTarget);
     }
 }
Beispiel #8
0
 static public void playEnterMenu()
 {
     if (enterMenu != null)
     {
         enterMenu.play(globalTarget);
     }
 }
Beispiel #9
0
 static public void playVictoryOpening()
 {
     if (victoryStart != null)
     {
         victoryStart.play(globalTarget);
     }
 }
Beispiel #10
0
 static public void playPlayerLand(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (playerLand != null)
     {
         playerLand.play(target);
     }
 }
Beispiel #11
0
 static public void playPlayerCantPush(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (playerCantPush != null)
     {
         playerCantPush.play(target);
     }
 }
Beispiel #12
0
 static public void playBlockShaking(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (blockShake != null)
     {
         blockShake.play(target);
     }
 }
Beispiel #13
0
 static public void playBlockLanded(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (blockLand != null)
     {
         blockLand.play(target);
     }
 }
Beispiel #14
0
 static public void playPlayerFalling(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (playerFalling != null)
     {
         playerFalling.play(target);
     }
 }
Beispiel #15
0
 static public void playPlayerMoveLedge(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (playerMoveLedge != null)
     {
         playerMoveLedge.play(target);
     }
 }
Beispiel #16
0
 static public void playPlayerCrushed(Transform target)
 {
     if (target == null)
     {
         target = globalTarget;
     }
     if (playerDeath != null)
     {
         playerDeath.play(target);
     }
 }
Beispiel #17
0
        static public void playPushBlock(float delay, Transform target)
        {
            if (target == null)
            {
                target = globalTarget;
            }

            if (delay < 1.0f)
            {
                if (pushBlock != null)
                {
                    pushBlock.play(target);
                }
            }
            else
            {
                if (longPushBlock != null)
                {
                    longPushBlock.play(target);
                }
            }
        }