private void Update() { switch (currState) { case Says.High: Onmousedown.Invoke(); Debug.Log("practice"); break; case Says.Squat: Ontriggerexit.Invoke(); Debug.Log("practice 2"); break; } }
void Update() { switch (currentState) { case States.Short: Ontriggerstay.Invoke(); Debug.Log("test"); break; case States.Tall: Ontriggerexit.Invoke(); break; default: throw new ArgumentOutOfRangeException(); } }