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(); } }
// Use for Mobile : Player Stop moving when button is released public void F_StopMoving() { currentCharacter.StopMoving(); }