コード例 #1
0
ファイル: Player.cs プロジェクト: nialltl/Muddledash
    public void Kill()
    {
        if (!alive) {
            return;
        }

        alive = false;
        invincible = false;
        // Set appropriate state when off-screen
        ledgeBodyTriggers.Clear();
        ledgeHeadTriggers.Clear();
        slipTriggers.Clear();
        slippyInSoles = 0;
        squishHitbox.Kill();
        Slipping = false;
        Boosting = false;
        hasGift = false;
        isInked = false;

        flatgrasses_occupied = 0;

        // Reset dash
        EndDash(false, true);
        surface = Surface.None;
        head.KillTweens();
        head.DisableInkSplat();

        tired = false;
        tiredAnimation.EndAnimation();

        // face.SetFace(Face.FaceType.Default);
        face.DisableRenderers();

        _audio.DisableContinual();
    }