Пример #1
0
        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;
            }
        }
Пример #2
0
 public override void OnExitState()
 {
     base.OnExitState();
     m_renderCom = null;
 }
Пример #3
0
 public override void OnEnterState()
 {
     base.OnEnterState();
     m_renderCom = Entity.GetComponent <CRenderCom>();
 }