protected int ShowEntity <T>(int entityId, Action <Entity> onShowSuccess, object userData = null) where T : EntityLogic { if (entityLoader == null) { entityLoader = EntityLoader.Create(this); } return(entityLoader.ShowEntity <T>(entityId, onShowSuccess, userData)); }
public int ShowEntity <T>(EnumEntity enumEntity, Action <Entity> onShowSuccess, object userData = null) where T : EntityLogic { if (entityLoader == null) { entityLoader = EntityLoader.Create(this); } return(entityLoader.ShowEntity <T>(enumEntity, onShowSuccess, userData)); }
protected int ShowEntity(int entityId, Type entityLogicType, Action <Entity> onShowSuccess, object userData = null) { if (entityLoader == null) { entityLoader = EntityLoader.Create(this); } return(entityLoader.ShowEntity(entityId, entityLogicType, onShowSuccess, userData)); }
public int ShowEntity(EnumEntity enumEntity, Type entityLogicType, Action <Entity> onShowSuccess, object userData = null) { if (entityLoader == null) { entityLoader = EntityLoader.Create(this); } return(entityLoader.ShowEntity(enumEntity, entityLogicType, onShowSuccess, userData)); }
public void OnEnter() { entityLoader = EntityLoader.Create(this); dataLevel = GameEntry.Data.GetData <DataLevel>(); dataPlayer = GameEntry.Data.GetData <DataPlayer>(); dataTower = GameEntry.Data.GetData <DataTower>(); dataEnemy = GameEntry.Data.GetData <DataEnemy>(); GameEntry.UI.OpenUIForm(EnumUIForm.UILevelMainInfoForm); GameEntry.UI.OpenUIForm(EnumUIForm.UITowerListForm); entityLoader.ShowEntity <EntityPlayer>(EnumEntity.Player, null, EntityData.Create(level.PlayerPosition, level.PlayerQuaternion)); }