using UnityEngine; public class TWS_Delegates { public delegate void OnTaskProgressUpdated(float progress); public static OnTaskProgressUpdated _OnTaskProgressUpdated; public static void TriggerTaskProgressUpdated(float progress) { if (_OnTaskProgressUpdated != null) { _OnTaskProgressUpdated(progress); } } public delegate void OnTaskStatusChanged(string status); public static OnTaskStatusChanged _OnTaskStatusChanged; public static void TriggerTaskStatusChanged(string status) { if (_OnTaskStatusChanged != null) { _OnTaskStatusChanged(status); } } public delegate void OnAllGameDataLoaded(); public static OnAllGameDataLoaded _OnAllGameDataLoaded; public static void TriggerAllGameDataLoaded() { if (_OnAllGameDataLoaded != null) { _OnAllGameDataLoaded(); } } public delegate void OnLookRotationHappenedFromJoystick(int direction); public static OnLookRotationHappenedFromJoystick _OnLookRotationHappenedFromJoystick; public static void TriggerLookRotationHappenedFromJoystick(int direction) { if (_OnLookRotationHappenedFromJoystick != null) { _OnLookRotationHappenedFromJoystick(direction); } } public delegate void OnItemCustomizationSelected(TWS_AppliedCustomizationsData appliedCustomization); public static OnItemCustomizationSelected _OnItemCustomizationSelected; public static void TriggerItemCustomizationSelected(TWS_AppliedCustomizationsData appliedCustomization) { if(_OnItemCustomizationSelected != null) { _OnItemCustomizationSelected(appliedCustomization); } } public delegate void OnCustomizationCatagoryChangedFromUI(string catagoryName); public static OnCustomizationCatagoryChangedFromUI _OnCustomizationCatagoryChangedFromUI; public static void TriggerCustomizationCatagoryChangedFromUI(string catagoryName) { if (_OnCustomizationCatagoryChangedFromUI != null) { _OnCustomizationCatagoryChangedFromUI(catagoryName); } } public delegate void OnPlayerAnimationTriggeredFromUI(string animationName); public static OnPlayerAnimationTriggeredFromUI _OnPlayerAnimationTriggeredFromUI; public static void TriggerPlayerAnimationTriggeredFromUI(string animationName) { if (_OnPlayerAnimationTriggeredFromUI != null) { _OnPlayerAnimationTriggeredFromUI(animationName); } } }