public void Initialize(Transform cameraTransform, CutsceneSound sound, GameObject beforeMonster, GameObject afterMonster)
 {
     this.mainCameraTransform = cameraTransform;
     this.sound         = sound;
     this.beforeMonster = beforeMonster;
     this.afterMonster  = afterMonster;
 }
示例#2
0
 public void Initialize(CutsceneSound sound, GameObject beforeMonster, GameObject afterMonster)
 {
     this.afterMonsterMaterialList = CutsceneCommon.GetMaterial(afterMonster);
     this.sound         = sound;
     this.beforeMonster = beforeMonster;
     this.afterMonster  = afterMonster;
 }
示例#3
0
 public void Initialize(CutsceneSound sound, Transform mainCameraTransform, GameObject beforeMonster, GameObject afterMonster)
 {
     this.wireMaterial        = new Material(Shader.Find("Unlit/UnlitAlphaWithFade"));
     this.sound               = sound;
     this.mainCameraTransform = mainCameraTransform;
     this.beforeMonster       = beforeMonster;
     this.afterMonster        = afterMonster;
 }
示例#4
0
 public void Initialize(CutsceneSound sound, GameObject beforeMonster, GameObject partnerMonster, GameObject afterMonster)
 {
     this.wireMaterial   = new Material(Shader.Find("Unlit/UnlitAlphaWithFade"));
     this.sound          = sound;
     this.beforeMonster  = beforeMonster;
     this.partnerMonster = partnerMonster;
     this.afterMonster   = afterMonster;
 }
        public void Initialize(CutsceneSound sound, Vector3 subCameraAnchor, GameObject baseMonster, GameObject materialMonster, GameObject digitama, bool upArousal, GameObject allSkipButton)
        {
            this.wireMaterial    = new Material(Shader.Find("Unlit/UnlitAlphaWithFade"));
            this.sound           = sound;
            this.baseMonster     = baseMonster;
            this.materialMonster = materialMonster;
            this.digitama        = digitama;
            this.rareUp          = upArousal;
            this.allSkipButton   = allSkipButton;
            EggModel component = digitama.GetComponent <EggModel>();

            this.cameraSwitcher.SetLookAtObject(component.GetCenter());
            this.cameraSwitcher.EnableSubCamera();
            this.cameraSwitcher.angle = -135f;
            this.cameraSwitcher.SetSubCameraAnchor(subCameraAnchor);
        }
        public void Initialize(CutsceneSound sound, GameObject baseMonster, int materialNum, Action endAnimationCallback)
        {
            this.wireMaterial         = new Material(Shader.Find("Unlit/UnlitAlphaWithFade"));
            this.sound                = sound;
            this.baseMonster          = baseMonster;
            this.endAnimationCallback = endAnimationCallback;
            CharacterParams component             = baseMonster.GetComponent <CharacterParams>();
            Transform       characterCenterTarget = component.characterCenterTarget;
            GameObject      resource = FxLaser.LoadPrefab();

            this.laserEffectList = new FxLaser[materialNum];
            for (int i = 0; i < this.laserEffectList.Length; i++)
            {
                this.laserEffectList[i] = FxLaser.Create(resource, baseMonster.transform);
                float rotationEulerAngleY = FxLaser.GetRotationEulerAngleY(materialNum, i);
                this.laserEffectList[i].SetTransform(characterCenterTarget.position.y, rotationEulerAngleY);
            }
            this.sphereParticle.transform.position = characterCenterTarget.position;
            this.auraParticle.transform.position   = characterCenterTarget.position;
        }
 public void Initialize(CutsceneSound sound, Camera subCamera, Transform rareSignParticle, string[] modelIdList, string[] growStepList)
 {
     this.sound            = sound;
     this.subCamera        = subCamera;
     this.rareSignParticle = rareSignParticle;
     this.modelIdList      = modelIdList;
     this.growStepList     = growStepList;
     this.gashaNextButton.Initialize();
     this.gashaNextButton.AddAction(new Action(this.SkipAnimation));
     this.cameraSwitcher.SetSubCameraAnchor(base.transform.position);
     this.zeroFrame = new GashaZeroFrame
     {
         mainCamera            = this.mainCamera,
         subCamera             = this.subCamera,
         cameraSwitcher        = this.cameraSwitcher,
         rareSignParticleSpark = this.rareSignParticleSpark,
         rareSignRainbowBox    = this.rareSignRainbowBox,
         bgColorRareNone       = this.bgColorRareNone,
         bgColorRareLow        = this.bgColorRareLow,
         bgColorRareMiddle     = this.bgColorRareMiddle,
         rareSignParticle      = this.rareSignParticle
     };
     this.zeroFrame.SetEndCallback(new Action <GashaAnimationBase>(this.StartNextAnimation));
     this.rareSignFirst = new GashaRareSignFirst
     {
         rareSignParticleRect  = this.rareSignParticleRect,
         rareSignParticleSpark = this.rareSignParticleSpark
     };
     this.rareSign = new GashaRareSign
     {
         rareSignParticleSpark = this.rareSignParticleSpark
     };
     this.signFallFirst = new GashaRareSignFallFirst
     {
         rareSignParticleSpark = this.rareSignParticleSpark,
         rareSignAnimation     = this.rareSignAnimation,
         subCameraAnimation    = this.subCameraAnimation,
         sound                = this.sound,
         shockWaveparticle    = this.shockWaveparticle,
         circleParticleAppear = this.circleParticleAppear,
         auraParticleBlue     = this.auraParticleBlue,
         auraParticleYellow   = this.auraParticleYellow,
         auraParticleRed      = this.auraParticleRed
     };
     this.signFall = new GashaRareSignFall
     {
         rareSignParticleSpark = this.rareSignParticleSpark,
         rareSignAnimation     = this.rareSignAnimation,
         subCameraAnimation    = this.subCameraAnimation,
         sound                = this.sound,
         shockWaveparticle    = this.shockWaveparticle,
         circleParticleAppear = this.circleParticleAppear,
         auraParticleBlue     = this.auraParticleBlue,
         auraParticleYellow   = this.auraParticleYellow,
         auraParticleRed      = this.auraParticleRed
     };
     this.rareText = new GashaRareText
     {
         circleParticleRoot = this.circleParticleRoot,
         mainCamera         = this.mainCamera,
         subCamera          = this.subCamera,
         cameraSwitcher     = this.cameraSwitcher,
         bgColorRareHigh    = this.bgColorRareHigh,
         sound        = this.sound,
         rareAnimator = this.textAnimator
     };
     this.growStepText = new GashaGrowStepText
     {
         mainCamera     = this.mainCamera,
         cameraSwitcher = this.cameraSwitcher,
         growAnimator   = this.textAnimator
     };
 }
示例#8
0
 public void Initialize(CutsceneSound sound, CharacterParams charaParam)
 {
     this.sound      = sound;
     this.charaParam = charaParam;
 }
 public void Initialize(CutsceneSound sound, CharacterParams baseMonster, CharacterParams materialMonster)
 {
     this.sound = sound;
     this.baseMonsterCharaParam     = baseMonster;
     this.materialMonsterCharaParam = materialMonster;
 }