Ejemplo n.º 1
0
 /// <summary>
 /// Unity OnDestroy callback.
 /// </summary>
 protected virtual void OnDisable()
 {
     if (manager != null)
     {
         manager.RemoveInput(this);
         manager = null;
     }
 }
 /// <summary>
 /// Unity OnDestroy callback.
 /// </summary>
 protected virtual void OnDisable()
 {
     if (touchManager != null)
     {
         touchManager.RemoveInput(this);
         touchManager = null;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Unity OnEnable callback.
 /// </summary>
 protected virtual void OnEnable()
 {
     manager = TouchManagerInstance.Instance;
     if (manager == null)
     {
         throw new InvalidOperationException("TouchManager instance is required!");
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Unity OnDestroy callback.
 /// </summary>
 protected virtual void OnDisable()
 {
     if (manager != null)
     {
         manager.RemoveInput(this);
         manager = null;
     }
 }
        /// <summary>
        /// Unity OnEnable callback.
        /// </summary>
        private void OnEnable()
        {
            touchManager = TouchManagerInstance.Instance;
            if (touchManager == null)
            {
                throw new InvalidOperationException("TouchManager instance is required!");
            }
            touchManager.AddInput(this);

            init();

            INTERNAL_UpdateResolution();
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Unity OnDestroy callback.
 /// </summary>
 protected virtual void OnDisable()
 {
     manager = null;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Unity OnEnable callback.
 /// </summary>
 protected virtual void OnEnable()
 {
     manager = TouchManagerInstance.Instance;
     if (manager == null) throw new InvalidOperationException("TouchManager instance is required!");
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Unity OnDestroy callback.
 /// </summary>
 protected virtual void OnDisable()
 {
     manager = null;
 }