public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataInheritance cutsceneDataInheritance = data as CutsceneDataInheritance;

        if (cutsceneDataInheritance != null)
        {
            this.endCallback = cutsceneDataInheritance.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            MaterialController[] componentsInChildren = base.GetComponentsInChildren <MaterialController>();
            foreach (MaterialController materialController in componentsInChildren)
            {
                materialController.isRealtimeUpdate = true;
            }
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.baseMonsterParentTransform, cutsceneDataInheritance.baseModelId);
            gameObject.transform.localPosition = Vector3.zero;
            gameObject.transform.localRotation = Quaternion.identity;
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.materialMonsterParentTransform, cutsceneDataInheritance.materialModelId);
            gameObject2.transform.localPosition = Vector3.zero;
            gameObject2.transform.localRotation = Quaternion.identity;
            CharacterParams component = gameObject.GetComponent <CharacterParams>();
            this.cameraTarget = component.characterCenterTarget;
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera);
            CharacterParams component2 = gameObject2.GetComponent <CharacterParams>();
            this.animeEvent.Initialize(this.cutsceneSound, component, component2);
        }
    }
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataMedalInherit cutsceneDataMedalInherit = data as CutsceneDataMedalInherit;

        if (cutsceneDataMedalInherit != null)
        {
            this.endCallback = cutsceneDataMedalInherit.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.baseMonsterParentTransform, cutsceneDataMedalInherit.baseModelId);
            gameObject.transform.localPosition = Vector3.zero;
            gameObject.transform.localRotation = Quaternion.identity;
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.materialMonsterParentTransform, cutsceneDataMedalInherit.materialModelId);
            gameObject2.transform.localPosition = Vector3.zero;
            gameObject2.transform.localRotation = Quaternion.identity;
            CharacterParams component = gameObject.GetComponent <CharacterParams>();
            this.cameraTarget = component.characterCenterTarget;
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera);
            CharacterParams component2 = gameObject2.GetComponent <CharacterParams>();
            this.animeEvent.Initialize(this.cutsceneSound, component, component2);
        }
    }
Ejemplo n.º 3
0
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataFusion cutsceneDataFusion = data as CutsceneDataFusion;

        if (cutsceneDataFusion != null)
        {
            base.transform.localPosition = new Vector3(0f, 10f, 0f);
            this.endCallback             = cutsceneDataFusion.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataFusion.baseModelId);
            gameObject.transform.localPosition = new Vector3(-1.5f, 0f, 0f);
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataFusion.materialModelId);
            gameObject2.transform.localPosition = new Vector3(1.5f, 0f, 0f);
            CharacterParams component = gameObject.GetComponent <CharacterParams>();
            component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null);
            component = gameObject2.GetComponent <CharacterParams>();
            component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null);
            GameObject gameObject3 = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataFusion.eggModelId);
            gameObject3.transform.localPosition = Vector3.zero;
            gameObject3.SetActive(false);
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera);
            this.scriptAnime.Initialize(this.cutsceneSound, base.transform.position, gameObject, gameObject2, gameObject3, cutsceneDataFusion.upArousal, this.allSkipButton.gameObject);
        }
    }
Ejemplo n.º 4
0
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataJogress cutsceneDataJogress = data as CutsceneDataJogress;

        if (cutsceneDataJogress != null)
        {
            this.endCallback = cutsceneDataJogress.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParentTransform, cutsceneDataJogress.beforeModelId);
            gameObject.transform.localPosition = Vector3.zero;
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.partnerMonsterParentTransform, cutsceneDataJogress.partnerModelId);
            gameObject2.transform.localPosition = Vector3.zero;
            GameObject gameObject3 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParentTransform, cutsceneDataJogress.afterModelId);
            gameObject3.transform.localPosition = Vector3.zero;
            gameObject3.SetActive(false);
            this.afterMonsterCharaParam = gameObject3.GetComponent <CharacterParams>();
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject3, this.mainCamera);
            this.animeEvent.Initialize(this.cutsceneSound, gameObject, gameObject2, gameObject3);
        }
    }
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataAwakening cutsceneDataAwakening = data as CutsceneDataAwakening;

        if (cutsceneDataAwakening != null)
        {
            this.endCallback = cutsceneDataAwakening.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.monsterParent, cutsceneDataAwakening.modelId);
            gameObject.transform.localPosition = Vector3.zero;
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CharacterParams component = gameObject.GetComponent <CharacterParams>();
            this.cameraTarget = component.characterCenterTarget;
            this.animeEvent.Initialize(this.cutsceneSound, component);
        }
    }
	public override void SetData(CutsceneDataBase data)
	{
		CutsceneDataTraining cutsceneDataTraining = data as CutsceneDataTraining;
		if (cutsceneDataTraining != null)
		{
			this.endCallback = cutsceneDataTraining.endCallback;
			this.allSkipButton.Initialize();
			this.allSkipButton.AddAction(new Action(this.EndCutscene));
			GameObject gameObject = CutsceneCommon.LoadMonsterModel(base.transform, cutsceneDataTraining.baseModelId);
			gameObject.transform.localPosition = Vector3.zero;
			CharacterParams component = gameObject.GetComponent<CharacterParams>();
			component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null);
			CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
			this.cameraTransform = this.mainCamera.transform;
			this.cameraRotatePosition = base.transform;
			this.lookAtPosition = component.characterCenterTarget;
			this.workVector3 = Vector3.zero;
			this.scriptAnime.Initialize(this.cutsceneSound, gameObject, cutsceneDataTraining.materialNum, new Action(this.EndCutscene));
		}
	}
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataVersionUp cutsceneDataVersionUp = data as CutsceneDataVersionUp;

        if (cutsceneDataVersionUp != null)
        {
            this.endCallback = cutsceneDataVersionUp.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParentTransform, cutsceneDataVersionUp.beforeModelId);
            gameObject.transform.localPosition = Vector3.zero;
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParentTransform, cutsceneDataVersionUp.afterModelId);
            gameObject2.transform.localPosition = Vector3.zero;
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera);
            this.animeEvent.Initialize(this.cutsceneSound, this.mainCamera.transform, gameObject, gameObject2);
        }
    }
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataEvolution cutsceneDataEvolution = data as CutsceneDataEvolution;

        if (cutsceneDataEvolution != null)
        {
            this.endCallback = cutsceneDataEvolution.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParent, cutsceneDataEvolution.beforeModelId);
            CutsceneCommon.InitializeMonsterPosition(gameObject, cutsceneDataEvolution.beforeGrowStep);
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParent, cutsceneDataEvolution.afterModelId);
            CutsceneCommon.InitializeMonsterPosition(gameObject2, cutsceneDataEvolution.afterGrowStep);
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.mainCamera);
            this.animeEvent.Initialize(this.mainCamera.transform, this.cutsceneSound, gameObject, gameObject2);
        }
    }
Ejemplo n.º 9
0
    public override void SetData(CutsceneDataBase data)
    {
        CutsceneDataEvolutionUltimate cutsceneDataEvolutionUltimate = data as CutsceneDataEvolutionUltimate;

        if (cutsceneDataEvolutionUltimate != null)
        {
            this.endCallback = cutsceneDataEvolutionUltimate.endCallback;
            this.allSkipButton.Initialize();
            this.allSkipButton.AddAction(new Action(this.EndCutscene));
            this.touchScreenButton.Initialize();
            this.touchScreenButton.AddAction(new Action(this.EndCutscene));
            GameObject gameObject = CutsceneCommon.LoadMonsterModel(this.beforeMonsterParent, cutsceneDataEvolutionUltimate.beforeModelId);
            gameObject.transform.localPosition = Vector3.zero;
            GameObject gameObject2 = CutsceneCommon.LoadMonsterModel(this.afterMonsterParent, cutsceneDataEvolutionUltimate.afterModelId);
            gameObject2.transform.localPosition = Vector3.zero;
            CharacterParams component = gameObject2.GetComponent <CharacterParams>();
            this.cameraTarget = component.characterCenterTarget;
            CutsceneCommon.SetBillBoardCamera(gameObject, this.mainCamera);
            CutsceneCommon.SetBillBoardCamera(gameObject2, this.subCamera);
            this.animeEvent.Initialize(this.mainCamera.transform, this.cutsceneSound, gameObject, gameObject2);
        }
    }