예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (!EventScript.Instance().GetStateMachine().ChackState(DefaultEventState.Instance()))
        {
            return;
        }

        if (invincCount > 0)
        {
            invincCount -= Time.deltaTime;

            if (invincCount <= 0)
            {
                PlayerController.instance.bodySR.color = new Color(PlayerController.instance.bodySR.color.r, PlayerController.instance.bodySR.color.g, PlayerController.instance.bodySR.color.b, 1f);
            }
        }
    }