void Start() { //Get reference to the Animator component attached to this GameObject. anim = GetComponent <Animator> (); //Get and store a reference to the Rigidbody2D attached to this GameObject. rb2d = GetComponent <Rigidbody2D>(); if (UnityInput == null) { UnityInput = new UnityInputService(); } }
public WindowsInteractionMapper(IUnityInputService unityInputService) : base(unityInputService) { }
public AndroidInteractionMapper(IUnityInputService unityInputService) : base(unityInputService) { _currentlyDragging = false; _draggingFingerId = -1; }
protected InteractionMapper( IUnityInputService unityInputService) { UnityInputService = unityInputService; }