示例#1
0
        public override bool RunScriptCommand()
        {
            bool            flag            = false;
            AdventureCamera adventureCamera = ClassSingleton <AdventureSceneData> .Instance.adventureCamera;
            string          text            = this.locatorOwnerFlag;

            if (text != null)
            {
                if (!(text == "stage"))
                {
                    if (!(text == "chara"))
                    {
                        if (!(text == "stageLoc"))
                        {
                            if (text == "charaLoc")
                            {
                                AdventureDigimonInfo digimonInfo = ClassSingleton <AdventureSceneData> .Instance.GetDigimonInfo(this.charaId);

                                if (digimonInfo != null)
                                {
                                    flag = adventureCamera.SetTargetCharaLocator(digimonInfo.model, this.locatorName, this.isFollowingFlag);
                                }
                            }
                        }
                        else
                        {
                            flag = adventureCamera.SetTargetStageLocator(this.locatorName, this.isFollowingFlag);
                        }
                    }
                    else
                    {
                        AdventureDigimonInfo digimonInfo = ClassSingleton <AdventureSceneData> .Instance.GetDigimonInfo(this.charaId);

                        if (digimonInfo != null)
                        {
                            adventureCamera.SetTargetChara(digimonInfo.model, this.isFollowingFlag);
                            flag = true;
                        }
                    }
                }
                else
                {
                    adventureCamera.SetLookAt(this.lookAtPosition, this.stageLocalPosition);
                    flag = true;
                }
            }
            if (flag)
            {
                base.ResumeScriptEngine();
            }
            return(flag);
        }
示例#2
0
 public AdventureSceneData()
 {
     this.adventureCamera = new AdventureCamera();
     this.digimonInfoList = new List <AdventureDigimonInfo>();
     this.effectInfoList  = new List <AdventureEffectInfo>();
 }