public override IEntity CreateMapObj(int id) { var gameObj = _objectManager.Get(id); if (gameObj == null) { return(null); } var glass = (MapObjectEntity)MapObjectEntityFactory.CreateGlassyObject(id, gameObj); MapObjectUtility.RecordMapObj(id, (int)_triggerType, glass); return(glass); }
public override void OnTriggerObjectLoaded(string id, GameObject gameObject) { MapObjectEntityFactory.CreateGlassyObject(id, gameObject, OnBroken); }