void OnMouseEnter() { if (type == MouseActionType.PickUp) { CursorManager.GetInstance().setHand(); } if (type == MouseActionType.Eney) { CursorManager.GetInstance().setAttack(); } }
//Picke Upable Object. When we double click on the object in the scene. private void OnMouseDown() { if (!clickManager.DoubleClick()) { return; } if (!isInit) { FetchItemInfo(); } CursorManager.GetInstance().setMouse(); }
//Picke Upable Object. When we double click on the object in the scene. private void OnMouseDown() { if (!clickManager.DoubleClick()) { return; } if (!isInit) { FetchItemInfo(); } //Find Player and Players inventory TargetLE lplayer = FindObjectOfType <TargetLE>(); LEInventory inventory = lplayer.transform.GetComponentInChildren <LEInventory>(); inventory.AddItem(item); transform.parent.parent = inventory.transform; transform.parent.gameObject.SetActive(false); CursorManager.GetInstance().setMouse(); }
private void OnDestroy() { CursorManager.GetInstance().setMouse(); }
void OnMouseExit() { CursorManager.GetInstance().setMouse(); }