Exemple #1
0
        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);
        }
Exemple #2
0
 public override void OnTriggerObjectLoaded(string id, GameObject gameObject)
 {
     MapObjectEntityFactory.CreateGlassyObject(id, gameObject, OnBroken);
 }