Beispiel #1
0
        //播放主角走到某区域剧情
        public bool PlayHeroArriveStory(uint mapId, Vector3 pos, ClosedCallback callBack)
        {
            bool result = false;

            closedCallback = callBack;

            ScriptHeroArriveAreaEntry entry = StoryFactory.GetEntry(StoryConst.TRIG_HERO_ARRIVE_AREA) as ScriptHeroArriveAreaEntry;

            entry.SceneId  = mapId.ToString();
            entry.Position = pos;
            result         = Singleton <StoryMode> .Instance.StoryExits(entry);

            if (result)
            {
                Singleton <StoryMode> .Instance.LoadActionData(entry, LoadDataCallback);
            }

            return(result);
        }
Beispiel #2
0
 public override bool Equals(object other)
 {
     if (base.Equals(other))
     {
         ScriptHeroArriveAreaEntry heroArriveAreaEntry = other as ScriptHeroArriveAreaEntry;
         if (null != heroArriveAreaEntry)
         {
             return(InArea(heroArriveAreaEntry.Position));
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }