// Update is called once per frame void Update() { if (SyncEntity != null) { SyncEntity.OnUpdate(); EntityAttribute.AttribbuteUpdate(SyncEntity); } }
// Update is called once per frame void Update() { if (SyncEntity != null) { SyncEntity.OnUpdate(); //状态更新 EntityAttribute.AttribbuteUpdate(SyncEntity); //战斗属性更新 } }
// Update is called once per frame void Update() { if (SyncEntity != null) { SyncEntity.OnUpdate();//Iselfplayer和Iplayer的onUpdate都会被执行?? EntityAttribute.AttribbuteUpdate(SyncEntity); } }
// Update is called once per frame void Update() { if (SyncEntity != null) { SyncEntity.OnUpdate(); //状态更新 mEntityData.Update(SyncEntity); //战斗属性更新 } }