Esempio n. 1
0
    /// <summary>
    /// Handles moving the player. Returns true if the player moves by button click
    /// </summary>
    /// <returns></returns>
    public bool HandleMovement()
    {
        bool movementLocked = puim.IsStateMovementLocked();

        if (!movementLocked)
        {
            return(HandleMovementInput()); // Get input and pick somewhere to move.
        }
        else if (puim.IsStateControllingCamera())
        {
            Debug.Log("HandleCameraMovement");
            puim.HandleCameraMovement();
        }
        return(false);
    }