Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
423 B
1
Indexable
Never
		/// <summary>
		/// If you're using a touch , bind your main joystick to this method
		/// </summary>
		/// <param name="reversemovement">rEVERSEMovement.</param>
		public virtual void SetReverseMovement(Vector2 movement)
		{
			if (IsMobile && InputDetectionActive)
			{
				_primaryMovement.x = -1*movement.x;
				_primaryMovement.y = -1*movement.y;
			}
			_primaryMovement = ApplyCameraRotation(_primaryMovement);
		}