Exemplo n.º 1
0
 // Bind Axes
 internal void BindAxes(AxesAlwaysHandler m_Handler)
 {
     useAlways = true;
     if (alwaysHandler != m_Handler)
     {
         alwaysHandler += m_Handler;
     }
 }
Exemplo n.º 2
0
 // UnBind Axes
 internal void UnBindAxes(AxesAlwaysHandler m_Handler)
 {
     if (alwaysHandler == m_Handler)
     {
         alwaysHandler -= m_Handler;
         useAlways      = (clickHandler != null);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Unbind your void of controller update, identified by controllerName.
 /// </summary>
 /// <param name="controllerName"></param>
 /// <param name="m_Handler"></param>
 public static void UnBindAxes(string controllerName, AxesAlwaysHandler m_Handler)
 {
     foreach (AxesBasedController controller in abControllers)
     {
         if (controller.MyName == controllerName)
         {
             controller.UnBindAxes(m_Handler);
             return;
         }
     }
     Debug.LogError("Controller: " + controllerName + " not found!");
 }