2024-08-27 12:23:41 +00:00
|
|
|
using System;
|
|
|
|
using BlueWater.Items;
|
2024-09-12 07:53:16 +00:00
|
|
|
using UnityEngine;
|
2024-08-27 12:23:41 +00:00
|
|
|
|
|
|
|
namespace BlueWater
|
|
|
|
{
|
2024-09-12 07:53:16 +00:00
|
|
|
public static class EventManager
|
2024-08-27 12:23:41 +00:00
|
|
|
{
|
2024-09-12 07:53:16 +00:00
|
|
|
// Global events
|
|
|
|
#region Global events
|
|
|
|
|
2024-09-24 10:35:49 +00:00
|
|
|
// Ui
|
2024-09-12 07:53:16 +00:00
|
|
|
public static Action<float, float, Color?, float> FadeInOut;
|
2024-09-24 10:35:49 +00:00
|
|
|
|
|
|
|
// Player
|
2024-09-23 02:00:21 +00:00
|
|
|
public static Action<int> OnMaxHealthChanged;
|
|
|
|
public static Action<int> OnHealthChanged;
|
|
|
|
public static Action OnDead;
|
2024-09-24 10:35:49 +00:00
|
|
|
|
|
|
|
// 상호작용
|
|
|
|
public static Action<string> OnShowInteractionUi;
|
|
|
|
public static Action OnHideInteractionUi;
|
2024-09-12 07:53:16 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
// Tycoon events
|
|
|
|
#region Tycoon events
|
|
|
|
|
2024-08-27 12:23:41 +00:00
|
|
|
// 음료
|
2024-09-10 07:26:29 +00:00
|
|
|
// public static Action<string> OnDrinkRecipeAcquired;
|
|
|
|
// public static Action<LiquidData> OnDrinkRecipeSelected;
|
2024-09-23 02:00:21 +00:00
|
|
|
|
|
|
|
public static Action OnTycoonOpenedEvent;
|
|
|
|
public static Action OnTycoonClosedEvent;
|
2024-09-09 12:27:15 +00:00
|
|
|
|
2024-09-30 02:11:09 +00:00
|
|
|
// public static Action OnLiquidRegionEntered;
|
|
|
|
// public static Action OnLiquidRegionExited;
|
2024-09-10 10:25:05 +00:00
|
|
|
|
2024-09-23 02:00:21 +00:00
|
|
|
public static Action OnCocktailStarted;
|
2024-09-10 10:25:05 +00:00
|
|
|
public static Action<CocktailData> OnCocktailCompleted;
|
|
|
|
public static Action OnCocktailDiscarded;
|
|
|
|
|
2024-09-23 02:00:21 +00:00
|
|
|
public static Action OnPlaceOnServingTable;
|
|
|
|
public static Action OnTakeFromServingTable;
|
2024-09-10 10:25:05 +00:00
|
|
|
|
2024-08-27 12:23:41 +00:00
|
|
|
// 요리
|
2024-09-10 10:25:05 +00:00
|
|
|
//public static Action<string> OnFoodRecipeAcquired;
|
2024-09-12 07:53:16 +00:00
|
|
|
|
|
|
|
#endregion
|
2024-08-27 12:23:41 +00:00
|
|
|
}
|
|
|
|
}
|