Untitled

 avatar
unknown
plain_text
2 years ago
423 B
5
Indexable
		/// <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);
		}
Editor is loading...