Пример #1
0
    private void Update()
    {
        switch (currState)
        {
        case Says.High:
            Onmousedown.Invoke();
            Debug.Log("practice");
            break;

        case Says.Squat:
            Ontriggerexit.Invoke();
            Debug.Log("practice 2");
            break;
        }
    }
Пример #2
0
    void Update()
    {
        switch (currentState)
        {
        case States.Short:
            Ontriggerstay.Invoke();
            Debug.Log("test");
            break;

        case States.Tall:
            Ontriggerexit.Invoke();
            break;

        default:
            throw new ArgumentOutOfRangeException();
        }
    }