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); }
private bool CheckForRestartInput(InputInfo input) { if (input.ReturnCurrentButtonState("Restart")) { return(true); } return(false); }
private bool CheckForEnlargeInteractionInput(InputInfo input) { if (input.ReturnCurrentButtonState("Interact_Enlarge")) { return(true); } return(false); }
private bool CheckForShrinkInteractionInput(InputInfo input) { if (input.ReturnCurrentButtonState("Interact_Shrink")) { return(true); } return(false); }
private bool CheckForStartGameInput(InputInfo input) { if (input.ReturnCurrentButtonState("StartButton")) { return(true); } return(false); }
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); }
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); }