private void OnPointerExit(InputType type, int index, PointerEventData eventData) { switch (type) { case InputType.Inventory: { OnInventoryExit.Invoke(index); } break; case InputType.Target: { OnWorldExit.Invoke(eventData.position); } break; } }
/*private void Update() * { * if (Pause_Keys.KeyDown()) * { * if (!paused) * { * paused = true; * Time.timeScale = 0; * OnPause.Invoke(); * } * else * { * paused = false; * Time.timeScale = 1; * OnUnPause.Invoke(); * } * } * }*/ private void FixedUpdate() { if (Inventory_Keys.KeyDown()) { if (!inventory) { inventory = true; OnInventoryEnter.Invoke(); } else { inventory = false; OnInventoryExit.Invoke(); } } }