update Task: complete read task templ, log task name and description on UI, add sprites asset
This commit is contained in:
@@ -3,12 +3,14 @@ using BrewMonster.Scripts.World;
|
||||
using CSNetwork.GPDataType;
|
||||
using CSNetwork.Protocols.RPCData;
|
||||
using System.Data;
|
||||
using BrewMonster.Network;
|
||||
using CSNetwork;
|
||||
using Unity.Cinemachine;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
public partial class CECGameRun : MonoBehaviour
|
||||
public partial class CECGameRun : MonoBehaviour, IMsgHandler
|
||||
{
|
||||
private static CECGameRun instance;
|
||||
|
||||
@@ -19,7 +21,7 @@ public partial class CECGameRun : MonoBehaviour
|
||||
[SerializeField] private GameObject _testVfxPrefab;
|
||||
//[SerializeField] private Transform ground;
|
||||
CECHostPlayer hostPlayer;
|
||||
|
||||
|
||||
public CinemachineFreeLook freeLookCam;
|
||||
public float rotateSpeedX = 300f; // tốc độ xoay ngang
|
||||
public float rotateSpeedY = 2f; // tốc độ xoay dọc
|
||||
@@ -57,6 +59,8 @@ public partial class CECGameRun : MonoBehaviour
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
EC_ManMessage.RegisterHandler(this);
|
||||
}
|
||||
|
||||
public void Log(string s)
|
||||
@@ -118,6 +122,7 @@ public partial class CECGameRun : MonoBehaviour
|
||||
GameObject character = Instantiate(characterPrefab, transform);
|
||||
return character.gameObject;
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
instance = null;
|
||||
|
||||
Reference in New Issue
Block a user