You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
917 B
29 lines
917 B
using Entitas;
|
|
|
|
namespace CoreGame.Render
|
|
{
|
|
public class CameraSyncSystem : IExecuteSystem
|
|
{
|
|
public void Execute(float deltaTime)
|
|
{
|
|
if (deltaTime < BattleConst.Epsilon)
|
|
return;
|
|
|
|
// var heroEntity = Contexts.Combat.LocalPlayer;
|
|
// var cameraEnt = Contexts.Combat.virtualCameraProxyEntity;
|
|
// if (heroEntity == false || cameraEnt == false)
|
|
// return;
|
|
//
|
|
//
|
|
// var cameraProxy = cameraEnt.virtualCameraProxy;
|
|
// cameraProxy.followPos = heroEntity.transformProxy.GetRenderPosition();
|
|
// if (Contexts.Combat.hasCameraShake)
|
|
// {
|
|
// var shake = Contexts.Combat.cameraShake;
|
|
// cameraProxy.followPos += shake.offset;
|
|
// }
|
|
//
|
|
// cameraProxy.Sync();
|
|
}
|
|
}
|
|
}
|