예제 #1
0
    private bool CheckForMovementInput(InputInfo input)
    {
        if (input.ReturnCurrentButtonState("Move_Left") || input.ReturnCurrentButtonState("Move_Right") || input.ReturnCurrentButtonState("Move_Up") || input.ReturnCurrentButtonState("Move_Down"))
        {
            return(true);
        }

        return(false);
    }
예제 #2
0
    private bool CheckForRestartInput(InputInfo input)
    {
        if (input.ReturnCurrentButtonState("Restart"))
        {
            return(true);
        }

        return(false);
    }
예제 #3
0
    private bool CheckForEnlargeInteractionInput(InputInfo input)
    {
        if (input.ReturnCurrentButtonState("Interact_Enlarge"))
        {
            return(true);
        }

        return(false);
    }
예제 #4
0
    private bool CheckForShrinkInteractionInput(InputInfo input)
    {
        if (input.ReturnCurrentButtonState("Interact_Shrink"))
        {
            return(true);
        }

        return(false);
    }
예제 #5
0
    private bool CheckForStartGameInput(InputInfo input)
    {
        if (input.ReturnCurrentButtonState("StartButton"))
        {
            return(true);
        }

        return(false);
    }
예제 #6
0
    private List <EntityMovement> ReturnActiveRoots(InputInfo input)
    {
        List <EntityMovement> activeRoots = new List <EntityMovement>();

        if (input.ReturnCurrentButtonState("Button0"))
        {
            activeRoots.Add(movement[0]);
        }

        if (input.ReturnCurrentButtonState("Button1"))
        {
            activeRoots.Add(movement[1]);
        }

        if (input.ReturnCurrentButtonState("Button2"))
        {
            activeRoots.Add(movement[2]);
        }

        return(activeRoots);
    }
예제 #7
0
    private Vector3 DetermineMovementDirection(InputInfo input)
    {
        if (input.ReturnCurrentButtonState("Move_Left"))
        {
            return(Vector3.left);
        }

        if (input.ReturnCurrentButtonState("Move_Right"))
        {
            return(Vector3.right);
        }

        if (input.ReturnCurrentButtonState("Move_Up"))
        {
            return(Vector3.up);
        }

        if (input.ReturnCurrentButtonState("Move_Down"))
        {
            return(Vector3.down);
        }

        return(Vector3.zero);
    }