Exemple #1
0
    private static KeyCode GetKeyCode(GrowthControls growthControl)
    {
        switch (growthControl)
        {
            case GrowthControls.PositiveY:
                return KeyCode.E;
        }

        throw new InvalidOperationException();
    }
Exemple #2
0
 private static bool ControlKeyDown(GrowthControls growthControl)
 {
     return Input.GetKeyDown(GetKeyCode(growthControl));
 }