Esempio n. 1
0
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.tag == "Switch")
        {
            if (Input.GetKeyDown(KeyCode.X) && alive && movingPlatform.can_switch)
            {
                movingPlatform.can_switch = false;

                animator.SetTrigger("lever");
                can_move = false;
                StartCoroutine(movingPlatform.ActivatePlatform());
                //can_move = true;
            }
        }
    }