public override void Update(CEntity entity) { CRenderCom renderCom = entity.GetComponent <CRenderCom>(); if (!renderCom.IsInited) { return; } CTransCom transCom = entity.GetComponent <CTransCom>(); if (transCom.IsPosDirty) { renderCom.GameObject.transform.position = transCom.Postion; } }
public override void OnExitState() { base.OnExitState(); m_renderCom = null; }
public override void OnEnterState() { base.OnEnterState(); m_renderCom = Entity.GetComponent <CRenderCom>(); }