using System.Collections; using System.Collections.Generic; using UnityEngine; namespace KairoEngine { public class PlayerEvents { public static event System.Action OnPositionChange; public static event System.Action OnHoverTarget; public static event System.Action OnSetPlayerPosition; public static void PositionChange(Vector3 position) { if(OnPositionChange != null) { //Debug.Log("ItemContainerEvents.OnOpen has been triggered"); OnPositionChange(position); } } public static void HoverTarget(GameObject target) { if(OnHoverTarget != null) { //Debug.Log("ItemContainerEvents.OnOpen has been triggered"); OnHoverTarget(target); } } public static void SetPlayerPosition(Vector3 targetPosition, Quaternion targetRotation) { if(OnSetPlayerPosition != null) { //Debug.Log("ItemContainerEvents.OnOpen has been triggered"); OnSetPlayerPosition(targetPosition, targetRotation); } } } }