RunnerBehavior.OnRespawn C# (CSharp) Method

OnRespawn() public method

public OnRespawn ( ) : void
return void
    public override void OnRespawn()
    {
        base.OnRespawn ();
        StopAllCoroutines ();
        mobFacingRight = (Vector2.right == defaultDir);
        pause = false;
        charging = false;
        speed = defaultSpeed;
        if (facingDir != defaultDir) {
            Vector3 theScale = transform.localScale;
            theScale.x *= -1;
            transform.localScale = theScale;
            facingDir = defaultDir;
        }
    }