Example #1
0
    // used to release from a controllable block and update the correct attributes
    // Calling condition: user presses button to leave block or block is destroyed
    // called by: this.ControllingUpdate(release btn), Controllable.OnDestroy()
    public void DetachFromBlock()
    {
        sprend.color = Color.white;
        controlled_block.DetachUser();

        // JF: Re-enable tooltip
        controlled_block.image.enabled = true;

        controlled_block = null;
        form             = PlayerForm.Normal;
        SFXManager.GetSFXManager().PlaySFX(SFX.StopPilot);
    }