Ejemplo n.º 1
0
//Manages interaction with the objects
    public void Interact(RaycastHit hit)
    {
        if (activate && myTurn == t3.GetTurn())        //if I am active and got hit
        //turn everything off and declare that I am now destroyed, also change song and whose turn it is
        {
            ps.Play();
            mR.enabled       = false;
            collider.enabled = false;
            destroyed        = true;
            t3.ChangeSong();
            t3.ChangeTurn();
            stringParticle.Stop();
        }
    }