Exemplo n.º 1
0
    virtual protected void OnInteraction()
    {
        //Interaction = "GrowUp";
        //Action = "Eat";
        updateBeliefArray();
        Debug.Log("COIN " + Action + " " + Interaction);
        player.printArray(beliefArray);


        Destroy(gameObject);
    }
Exemplo n.º 2
0
    override protected void DestroyBlock(SMBPlayer player)
    {
        if (player.State == SMBConstants.PlayerState.GrownUp)
        {
            SMBGameWorld.Instance.PlayParticle(transform.position, "SMBBlockParticleSystem");
            SMBGameWorld.Instance.PlaySoundEffect((int)SMBConstants.GameWorldSoundEffects.BreakBlock);

            //for Mario's OnTriggerStay
            Interaction = "Break";
            Action      = "Jump";
            updateBeliefArray();
            player.printArray(beliefArray);

            Destroy(gameObject);
        }
    }