0252370c2b
# Conflicts: # Assets/NetworkLib/Debug/netstandard2.1/CSNetwork.dll # Assets/PerfectWorld/Scripts/Network/EC_ManMessageMono.cs # Assets/Scripts/CECHostPlayer.cs # Assets/Scripts/GameController.cs
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using CSNetwork;
|
|
using PerfectWorld.Scripts.Managers.BrewMonster.Managers;
|
|
|
|
namespace BrewMonster
|
|
{
|
|
[Serializable]
|
|
public class EC_ManMessageMono : MonoBehaviour
|
|
{
|
|
private static EC_ManMessageMono instance;
|
|
|
|
public static EC_ManMessageMono Instance
|
|
{
|
|
get
|
|
{
|
|
if(instance == null)
|
|
{
|
|
instance = FindAnyObjectByType<EC_ManMessageMono>();
|
|
}
|
|
return instance;
|
|
}
|
|
}
|
|
|
|
public EC_ManPlayer EC_ManPlayer;
|
|
public EC_ManPlayer GetECManPlayer { get => EC_ManPlayer;}
|
|
|
|
private void Awake()
|
|
{
|
|
instance = this;
|
|
//TODO: Remove later
|
|
EC_ManPlayer = new EC_ManPlayer();
|
|
EC_ManMessage.RegisterHandler(EC_ManPlayer);
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
EC_ManMessage.Dispose();
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
EC_ManMessage.Tick();
|
|
}
|
|
}
|
|
} |