Exemplo n.º 1
0
 void OnObjectFinishedMoving(ObjectFinishMovingContext ctx)
 {
     if (ctx.obj is Slime && doesSlimeIsCoverExit((Slime)ctx.obj))
     {
         EventSystem.Current.FireEvent(new LevelBeatContext(SlimeController.moveCount, SlimeController.mergeCount, SlimeController.splitCount));
     }
 }
Exemplo n.º 2
0
 void OnObjectFinishMoving(ObjectFinishMovingContext ctx)
 {
     if (ctx.obj is Slime)
     {
         slimeArrive.Play();
     }
 }
Exemplo n.º 3
0
    void OnObjectFinishedMoving(ObjectFinishMovingContext ctx)
    {
        bool buttonPressed = doesThingIsCoverButton(ctx.obj);

        if (!isTriggered && buttonPressed)
        {
            activateButton(ctx.obj.gameObject);
        }
        else if (isTriggered && ObjectPressingButton.Equals(ctx.obj.gameObject) && !buttonPressed)
        {
            deactivateButton();
        }
    }