示例#1
0
    public void initializedCanvasMobile()
    {
        if (ingameGlobalManager.instance.currentPlayer.GetComponent <characterMovement> ())
        {
            currentCharacter = ingameGlobalManager.instance.currentPlayer.GetComponent <characterMovement> ();


            currentCharacter.mobileToystickController = virtualJoystick;
            currentCharacter.mobileLeftJoystickToMove = virtualJoystickLeftStickToMove;


            currentCharacter.StopMoving();
            currentCharacter.pointerUp();
        }
    }
示例#2
0
 // Use for Mobile : Player Stop moving when button is released
 public void F_StopMoving()
 {
     currentCharacter.StopMoving();
 }