Esempio n. 1
0
 public void _DoAttachCursor(GameObject uiItem)
 {
     m_selectedItem = uiItem;
     if (uiItem.GetComponent <UISprite>() != null)
     {
         MouseSimulator.Instance.SetMousePos(uiItem.transform.position);
     }
     else if (JoyControllerLogic.FindChild <UISprite>(uiItem.transform) != null)
     {
         MouseSimulator.Instance.SetMousePos(JoyControllerLogic.FindChild <UISprite>(uiItem.transform).position);
     }
 }
Esempio n. 2
0
 void Awake()
 {
     instance = this;
 }