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); }
public AdventureSceneData() { this.adventureCamera = new AdventureCamera(); this.digimonInfoList = new List <AdventureDigimonInfo>(); this.effectInfoList = new List <AdventureEffectInfo>(); }