您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
30 行
880 B
30 行
880 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SpectatorCamModuleClient
|
|
{
|
|
public SpectatorCamModuleClient(GameWorld world)
|
|
{
|
|
m_world = world;
|
|
m_UpdateSpectatorCam = m_world.GetECSWorld().CreateManager<UpdateSpectatorCam>(m_world);
|
|
m_UpdateSpectatorCamControl = m_world.GetECSWorld().CreateManager<UpdateSpectatorCamControl>(m_world);
|
|
|
|
}
|
|
|
|
public void Shutdown()
|
|
{
|
|
m_world.GetECSWorld().DestroyManager(m_UpdateSpectatorCam);
|
|
m_world.GetECSWorld().DestroyManager(m_UpdateSpectatorCamControl);
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
m_UpdateSpectatorCam.Update();
|
|
m_UpdateSpectatorCamControl.Update();
|
|
}
|
|
|
|
GameWorld m_world;
|
|
UpdateSpectatorCam m_UpdateSpectatorCam;
|
|
UpdateSpectatorCamControl m_UpdateSpectatorCamControl;
|
|
}
|