大修
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f205975c56dff0d448868117559e6525
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e4c2d9ce7beb61240adf04c750486708
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public partial class DTMTrail_BM : EnvironmentObject_BM
|
||||
{
|
||||
public FlexibleFloat_BM visibleTimeLength;
|
||||
public FlexibleBool_BM enableTimes;
|
||||
public float enableProcessTime = 0.5f;
|
||||
public float headSize = 1f;
|
||||
|
||||
public FlexibleFloat_BM headRotateSpeed;
|
||||
|
||||
public DTMTrail_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMTrail_BM(string elementName, Guid elementGuid, List<string> tags, GameElement_BM parentElement,
|
||||
string themeBundleName, string objectName, bool isStatic, FlexibleFloat visibleTimeLength,
|
||||
FlexibleBool enableTimes, FlexibleFloat headRotateSpeed, float enableProcessTime, float headSize) :
|
||||
base(elementName, elementGuid, tags, parentElement, themeBundleName, objectName, isStatic)
|
||||
{
|
||||
this.visibleTimeLength = visibleTimeLength?.ConvertToBM();
|
||||
this.enableTimes = enableTimes?.ConvertToBM();
|
||||
this.headRotateSpeed = headRotateSpeed?.ConvertToBM();
|
||||
this.enableProcessTime = enableProcessTime;
|
||||
this.headSize = headSize;
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMTrail.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isStatic, visibleTimeLength?.ConvertToGameType(),
|
||||
enableTimes?.ConvertToGameType(), headRotateSpeed?.ConvertToGameType(), enableProcessTime, headSize);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMTrail.GenerateElement(elementName, Guid.NewGuid(), tags, false,
|
||||
themeBundleName, objectName, parent, isStatic, visibleTimeLength?.ConvertToGameType(), enableTimes?.ConvertToGameType(),
|
||||
headRotateSpeed?.ConvertToGameType(), enableProcessTime, headSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b65480810cb537e42bf0e4fbda776f91
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7801db0be90a764ab49dfe32b7be7b8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8465a22faa7ab0d4983e01de38cb2ed7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteBadBurst_BM : NoteBadEffect_BM
|
||||
{
|
||||
public DTMNoteBadBurst_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteBadBurst_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteBadBurst(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 882aa31be463a2147a71b9a502a7785d
|
||||
@@ -0,0 +1,23 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteGenerateExpand_BM : NoteGenerateEffect_BM
|
||||
{
|
||||
public DTMNoteGenerateExpand_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteGenerateExpand_BM(float effectTime, float generateTime) :
|
||||
base(effectTime, generateTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteGenerateExpand(attachedGameElement as NoteVisualBase, generateTime, effectTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f4745e5d96daaa4287580fa46e41473
|
||||
@@ -0,0 +1,23 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteGenerateExtend_BM : NoteGenerateEffect_BM
|
||||
{
|
||||
public DTMNoteGenerateExtend_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteGenerateExtend_BM(float effectTime, float generateTime) :
|
||||
base(effectTime, generateTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteGenerateExtend(attachedGameElement as NoteVisualBase, generateTime, effectTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b4da01861a6cf9478ccf3fb1b138d70
|
||||
@@ -0,0 +1,22 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteGoodBurst_BM : NoteGoodEffect_BM
|
||||
{
|
||||
public DTMNoteGoodBurst_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteGoodBurst_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteGoodBurst(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4bea6e720a90b44ababf39ccb8fbcc6
|
||||
@@ -0,0 +1,22 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteHoldingBreath_BM : NoteHoldingEffect_BM
|
||||
{
|
||||
public DTMNoteHoldingBreath_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteHoldingBreath_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteHoldingBreath(attachedGameElement as DTMNoteVisualHold);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ada343b835586504f882be06829d0b19
|
||||
@@ -0,0 +1,22 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteMissTransparent_BM : NoteMissEffect_BM
|
||||
{
|
||||
public DTMNoteMissTransparent_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteMissTransparent_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteMissTransparent(attachedGameElement as NoteVisualBase, effectTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81caedae1d4ebe44484c25c9927c3e38
|
||||
@@ -0,0 +1,22 @@
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNotePerfectBurst_BM : NotePerfectEffect_BM
|
||||
{
|
||||
public DTMNotePerfectBurst_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNotePerfectBurst_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNotePerfectBurst(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa2afd25382ad014a960df2499a4a9c8
|
||||
@@ -0,0 +1,38 @@
|
||||
using UnityEngine;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMRippleEffect_BM : EffectBase_BM
|
||||
{
|
||||
public float rippleTime;
|
||||
public Vector3 positionOffset;
|
||||
public Vector3 eulerAngles;
|
||||
public Vector3 scale;
|
||||
public Color emissionColor = Color.white;
|
||||
public float emissionIntensity = 0;
|
||||
|
||||
public DTMRippleEffect_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMRippleEffect_BM(float rippleTime, Color emissionColor, float emissionIntensity, Vector3 positionOffset, Vector3 eulerAngles, Vector3 scale)
|
||||
{
|
||||
this.rippleTime = rippleTime;
|
||||
this.positionOffset = positionOffset;
|
||||
this.eulerAngles = eulerAngles;
|
||||
this.scale = scale;
|
||||
this.emissionColor = emissionColor;
|
||||
this.emissionIntensity = emissionIntensity;
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMRippleEffect(rippleTime, emissionColor, emissionIntensity, positionOffset, eulerAngles, scale)
|
||||
{
|
||||
attachedGameElement = attachedGameElement
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a65263cc43b65144bdd8cd7a0c3ae73
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e67e05377b617a7499ea9a5304eccca4
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteVisualHold_BM : DTMNoteVisual_BM
|
||||
{
|
||||
public DTMNoteVisualHold_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteVisualHold_BM(string elementName, Guid id, List<string> tags,
|
||||
string themeBundleName, string objectName, GameElement_BM parent, bool isHighlighted) :
|
||||
base(elementName, id, tags, parent, themeBundleName, objectName, isHighlighted)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMNoteVisualHold.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isHighlighted);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMNoteVisualHold.GenerateElement(elementName, Guid.NewGuid(), tags, false,
|
||||
themeBundleName, objectName, parent, isHighlighted);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 823c2282a8683e24db7e2c8c8ef53d62
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap
|
||||
{
|
||||
public class DTMNoteVisual_BM : NoteVisualBase_BM
|
||||
{
|
||||
public DTMNoteVisual_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteVisual_BM(string elementName, Guid id, List<string> tags,
|
||||
GameElement_BM parent, string themeBundleName, string objectName, bool isHighlighted) :
|
||||
base(elementName, id, tags, parent, themeBundleName, objectName, isHighlighted)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMNoteVisual.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isHighlighted);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMNoteVisual.GenerateElement(elementName, Guid.NewGuid(), tags, false, themeBundleName,
|
||||
objectName, parent, isHighlighted);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 907f5102959689f4bb9523ee24199fda
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b201977e794c8324d9bd38e52314776a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d35b3119313fb9041b253fa75f70d3c8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -13,6 +13,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public partial class DTMTrail : EnvironmentObject, IHaveTrail, IHaveInteraction
|
||||
{
|
||||
#region [暴露属性字段] Exposed Fields
|
||||
public GameObject headPoint, headCircle;
|
||||
public GameObject trailBody;
|
||||
public bool isHeadEnabled;
|
||||
@@ -34,7 +35,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
}
|
||||
|
||||
public override bool haveEmissionColor => true;
|
||||
#endregion
|
||||
|
||||
#region [生命周期与工厂] Lifecycle & Factory
|
||||
public static DTMTrail GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement,
|
||||
bool isStatic, FlexibleFloat visibleTimeLength, FlexibleBool enableTimes, FlexibleFloat headRotateSpeed, float enableProcessTime,
|
||||
@@ -122,7 +125,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
rend.material.EnableKeyword("_USEREDASALPHA_ON");
|
||||
});
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [事件动画逻辑] Event Animation Logic
|
||||
private void Update()
|
||||
{
|
||||
float songTime = EditorManager.instance.songInformation.songTime;
|
||||
@@ -188,10 +193,12 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
headBounceSequence.Join(headCircle.transform.DOBlendableScaleBy(Vector3.one * -0.2f, 0.2f).SetEase(Ease.OutBack));
|
||||
headBounceSequence.Play();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
public partial class DTMTrail
|
||||
{
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new DTMTrail_BM(elementName, elementGuid, tags, parentElement.matchedBM as GameElement_BM,
|
||||
@@ -233,50 +240,6 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
var headSizeInputField =
|
||||
inspector.GenerateInputField(this, subcontainer, "Head Size", nameof(headSize));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public partial class DTMTrail_BM : EnvironmentObject_BM
|
||||
{
|
||||
public FlexibleFloat_BM visibleTimeLength;
|
||||
public FlexibleBool_BM enableTimes;
|
||||
public float enableProcessTime = 0.5f;
|
||||
public float headSize = 1f;
|
||||
|
||||
public FlexibleFloat_BM headRotateSpeed;
|
||||
|
||||
public DTMTrail_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMTrail_BM(string elementName, Guid elementGuid, List<string> tags, GameElement_BM parentElement,
|
||||
string themeBundleName, string objectName, bool isStatic, FlexibleFloat visibleTimeLength,
|
||||
FlexibleBool enableTimes, FlexibleFloat headRotateSpeed, float enableProcessTime, float headSize) :
|
||||
base(elementName, elementGuid, tags, parentElement, themeBundleName, objectName, isStatic)
|
||||
{
|
||||
this.visibleTimeLength = visibleTimeLength.ConvertToBM();
|
||||
this.enableTimes = enableTimes.ConvertToBM();
|
||||
this.headRotateSpeed = headRotateSpeed.ConvertToBM();
|
||||
this.enableProcessTime = enableProcessTime;
|
||||
this.headSize = headSize;
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMTrail.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isStatic, visibleTimeLength?.ConvertToGameType(),
|
||||
enableTimes.ConvertToGameType(), headRotateSpeed?.ConvertToGameType(), enableProcessTime, headSize);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMTrail.GenerateElement(elementName, Guid.NewGuid(), tags, false,
|
||||
themeBundleName, objectName, parent, isStatic, visibleTimeLength?.ConvertToGameType(), enableTimes.ConvertToGameType(),
|
||||
headRotateSpeed?.ConvertToGameType(), enableProcessTime, headSize);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84bce6d5842025f4e9ef10dfe6caa30e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,77 +1,66 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||||
using Lean.Pool;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteBadBurst : NoteBadEffect
|
||||
{
|
||||
private ParticleSystem effectParticle;
|
||||
|
||||
public DTMNoteBadBurst(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectParticle = noteVisual.effectPrefabList[2].GetComponent<ParticleSystem>();
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[2], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
effectParticle.Play();
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNoteBadBurst_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("DTM Note Bad Burst");
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteBadBurst_BM : NoteBadEffect_BM
|
||||
{
|
||||
public DTMNoteBadBurst_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteBadBurst_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteBadBurst(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||||
using Lean.Pool;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteBadBurst : NoteBadEffect
|
||||
{
|
||||
#region [运行时缓存数据] Property Caches
|
||||
private ParticleSystem effectParticle;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMNoteBadBurst(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectParticle = noteVisual.effectPrefabList[2].GetComponent<ParticleSystem>();
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[2], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
effectParticle.Play();
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNoteBadBurst_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("DTM Note Bad Burst");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,6 +6,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteGenerateExpand : NoteGenerateEffect
|
||||
{
|
||||
#region [初始化] Initialization
|
||||
public DTMNoteGenerateExpand(NoteVisualBase noteVisual, float generateTime, float effectTime)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
@@ -13,7 +14,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
this.generateTime = generateTime;
|
||||
this.effectTime = effectTime;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public sealed override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
@@ -56,7 +59,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
noteVisual.noteMain.transform.localScale = Vector3.one;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new Beatmap.DTMNoteGenerateExpand_BM(effectTime, generateTime);
|
||||
@@ -70,27 +75,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
var generateTimeField = inspector.GenerateInputField(this, subcontainer, "Generate Time", nameof(generateTime));
|
||||
var effectTimeField = inspector.GenerateInputField(this, subcontainer, "Effect Time", nameof(effectTime));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteGenerateExpand_BM : NoteGenerateEffect_BM
|
||||
{
|
||||
public DTMNoteGenerateExpand_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteGenerateExpand_BM(float effectTime, float generateTime) :
|
||||
base(effectTime, generateTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteGenerateExpand(attachedGameElement as NoteVisualBase, generateTime, effectTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,11 +9,15 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteGenerateExtend : NoteGenerateEffect
|
||||
{
|
||||
#region [运行时缓存数据] Property Caches
|
||||
private Hold hold;
|
||||
private DTMNoteVisualHold noteVisualHold;
|
||||
|
||||
public float targetStartPercent, targetEndPercent;
|
||||
public float startPercent, endPercent;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMNoteGenerateExtend(NoteVisualBase noteVisual, float generateTime, float effectTime)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
@@ -23,7 +27,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
this.generateTime = generateTime;
|
||||
this.effectTime = effectTime;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
private void UpdateHold()
|
||||
{
|
||||
hold.trackPositioner.SetPercent(startPercent);
|
||||
@@ -72,7 +78,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
if (noteVisualHold.noteMain.activeSelf)
|
||||
noteVisualHold.noteMain.SetActive(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNoteGenerateExtend_BM(effectTime, generateTime);
|
||||
@@ -112,27 +120,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
var generateTimeField = inspector.GenerateInputField(this, subcontainer, "Generate Time", nameof(generateTime));
|
||||
var effectTimeField = inspector.GenerateInputField(this, subcontainer, "Effect Time", nameof(effectTime));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteGenerateExtend_BM : NoteGenerateEffect_BM
|
||||
{
|
||||
public DTMNoteGenerateExtend_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteGenerateExtend_BM(float effectTime, float generateTime) :
|
||||
base(effectTime, generateTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteGenerateExtend(attachedGameElement as NoteVisualBase, generateTime, effectTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,78 +1,67 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||||
using Lean.Pool;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteGoodBurst : NoteGoodEffect
|
||||
{
|
||||
private ParticleSystem effectParticle;
|
||||
|
||||
public DTMNoteGoodBurst(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[1], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
effectParticle.Play();
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNoteGoodBurst_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("DTM Note Good Burst");
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteGoodBurst_BM : NoteGoodEffect_BM
|
||||
{
|
||||
public DTMNoteGoodBurst_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteGoodBurst_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteGoodBurst(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||||
using Lean.Pool;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteGoodBurst : NoteGoodEffect
|
||||
{
|
||||
#region [运行时缓存数据] Property Caches
|
||||
private ParticleSystem effectParticle;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMNoteGoodBurst(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[1], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
effectParticle.Play();
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNoteGoodBurst_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("DTM Note Good Burst");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,15 +9,20 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteHoldingBreath : NoteHoldingEffect
|
||||
{
|
||||
#region [运行时缓存数据] Property Caches
|
||||
private ParticleSystem breathParticle;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMNoteHoldingBreath(DTMNoteVisualHold noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = GetHoldingTime();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public override void Recover()
|
||||
{
|
||||
if (breathParticle != null)
|
||||
@@ -86,7 +91,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
if (breathParticle != null)
|
||||
breathParticle.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new Beatmap.DTMNoteHoldingBreath_BM(effectTime);
|
||||
@@ -98,26 +105,6 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
var container = inspector.GenerateContainer("Basic Note Holding Expand");
|
||||
var subcontainer = container.GenerateSubcontainer(3);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteHoldingBreath_BM : NoteHoldingEffect_BM
|
||||
{
|
||||
public DTMNoteHoldingBreath_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteHoldingBreath_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteHoldingBreath(attachedGameElement as DTMNoteVisualHold);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNoteMissTransparent : NoteMissEffect
|
||||
{
|
||||
#region [运行时缓存数据] Property Caches
|
||||
public List<Renderer> noteRenderers;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMNoteMissTransparent(NoteVisualBase noteVisual, float effectTime)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
@@ -26,7 +30,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
@@ -73,7 +79,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNoteMissTransparent_BM(effectTime);
|
||||
@@ -86,26 +94,6 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
var subcontainer = container.GenerateSubcontainer(3);
|
||||
var effectTimeField = inspector.GenerateInputField(this, subcontainer, "Effect Time", nameof(effectTime));
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteMissTransparent_BM : NoteMissEffect_BM
|
||||
{
|
||||
public DTMNoteMissTransparent_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteMissTransparent_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNoteMissTransparent(attachedGameElement as NoteVisualBase, effectTime);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,84 +1,73 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||||
using Lean.Pool;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNotePerfectBurst : NotePerfectEffect
|
||||
{
|
||||
private ParticleSystem effectParticle;
|
||||
|
||||
public DTMNotePerfectBurst(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
public override void Recover()
|
||||
{
|
||||
try
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
}
|
||||
catch { }
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[0], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
|
||||
effectParticle.Play();
|
||||
|
||||
// effectParticle.transform.DOMove(noteVisual.noteVisualPosition, 0.2f);
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNotePerfectBurst_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("DTM Note Perfect Burst");
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNotePerfectBurst_BM : NotePerfectEffect_BM
|
||||
{
|
||||
public DTMNotePerfectBurst_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNotePerfectBurst_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMNotePerfectBurst(attachedGameElement as NoteVisualBase);
|
||||
}
|
||||
}
|
||||
}
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
|
||||
using Lean.Pool;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMNotePerfectBurst : NotePerfectEffect
|
||||
{
|
||||
#region [运行时缓存数据] Property Caches
|
||||
private ParticleSystem effectParticle;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMNotePerfectBurst(NoteVisualBase noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public override void Recover()
|
||||
{
|
||||
try
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
}
|
||||
catch { }
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[0], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
|
||||
effectParticle.Play();
|
||||
|
||||
// effectParticle.transform.DOMove(noteVisual.noteVisualPosition, 0.2f);
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new DTMNotePerfectBurst_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("DTM Note Perfect Burst");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
||||
@@ -10,15 +10,19 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public class DTMRippleEffect : EffectBase
|
||||
{
|
||||
#region [运行时缓存数据与暴露属性] Fields
|
||||
private GameObject prefab;
|
||||
private DTM_Ripple ripple;
|
||||
|
||||
public float rippleTime;
|
||||
public Vector3 positionOffset;
|
||||
public Vector3 eulerAnglesOffset;
|
||||
public Vector3 scale;
|
||||
public Color emissionColor;
|
||||
public float emissionIntensity;
|
||||
#endregion
|
||||
|
||||
#region [初始化] Initialization
|
||||
public DTMRippleEffect(float rippleTime, Color emissionColor, float emissionIntensity)
|
||||
{
|
||||
this.effectTime = 0;
|
||||
@@ -49,7 +53,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
customPrefabs["departure_to_multiverse"].
|
||||
GetPrefab("DTM_Ripple");
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [特效逻辑] Effect Logic
|
||||
public override void Adjust()
|
||||
{
|
||||
|
||||
@@ -64,7 +70,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
ripple.mainRipple.Play();
|
||||
LeanPool.Despawn(ripple.gameObject, rippleTime);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new Beatmap.DTMRippleEffect_BM(rippleTime, emissionColor, emissionIntensity, positionOffset, eulerAnglesOffset, scale);
|
||||
@@ -83,42 +91,6 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
var scaleInputField = inspector.GenerateVector3InputField(this, effectSettings2, "Scale", nameof(scale));
|
||||
SetRemove(effectSettings2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMRippleEffect_BM : EffectBase_BM
|
||||
{
|
||||
public float rippleTime;
|
||||
public Vector3 positionOffset;
|
||||
public Vector3 eulerAngles;
|
||||
public Vector3 scale;
|
||||
public Color emissionColor = Color.white;
|
||||
public float emissionIntensity = 0;
|
||||
|
||||
public DTMRippleEffect_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMRippleEffect_BM(float rippleTime, Color emissionColor, float emissionIntensity, Vector3 positionOffset, Vector3 eulerAngles, Vector3 scale)
|
||||
{
|
||||
this.rippleTime = rippleTime;
|
||||
this.positionOffset = positionOffset;
|
||||
this.eulerAngles = eulerAngles;
|
||||
this.scale = scale;
|
||||
this.emissionColor = emissionColor;
|
||||
this.emissionIntensity = emissionIntensity;
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new DTMRippleEffect(rippleTime, emissionColor, emissionIntensity, positionOffset, eulerAngles, scale)
|
||||
{
|
||||
attachedGameElement = attachedGameElement
|
||||
};
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,135 +1,113 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public partial class DTMNoteVisual : NoteVisualBase
|
||||
{
|
||||
public List<List<Material>> normalMaterialList;
|
||||
public List<List<Material>> highlightMaterialList;
|
||||
|
||||
public new static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
|
||||
{
|
||||
DTMNoteVisual noteVisual = NoteVisualBase.GenerateElement(elementName, id, tags,
|
||||
isFirstGenerated, themeBundleName, objectName, parentElement, isHighlighted).GetComponent<DTMNoteVisual>();
|
||||
|
||||
return noteVisual;
|
||||
}
|
||||
|
||||
public override void FirstSetUpObject(bool isFirstGenerated)
|
||||
{
|
||||
NoteBase note = parentElement as NoteBase;
|
||||
if (note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
|
||||
this.note = note;
|
||||
note.noteVisual = this;
|
||||
|
||||
if (isFirstGenerated)
|
||||
{
|
||||
note.noteJudgeSubmodule.AddJudgeUnit("TouchArea");
|
||||
effectSubmodule.effectCollection["Generate"].Add(new DTMNoteGenerateExpand(this, 1f, 0.2f));
|
||||
effectSubmodule.effectCollection["Perfect"].Add(new DTMNotePerfectBurst(this));
|
||||
if (objectName.Contains("Tap"))
|
||||
{
|
||||
effectSubmodule.effectCollection["Good"].Add(new DTMNoteGoodBurst(this));
|
||||
effectSubmodule.effectCollection["Bad"].Add(new DTMNoteBadBurst(this));
|
||||
}
|
||||
effectSubmodule.effectCollection["Miss"].Add(new DTMNoteMissTransparent(this, 0.2f));
|
||||
}
|
||||
}
|
||||
|
||||
public override void AfterInitialize()
|
||||
{
|
||||
base.AfterInitialize();
|
||||
Recover();
|
||||
}
|
||||
|
||||
public override void Recover()
|
||||
{
|
||||
foreach (GameObject part in notePartList)
|
||||
{
|
||||
Renderer rend = part.GetComponent<Renderer>();
|
||||
if (rend != null)
|
||||
{
|
||||
rend.material.SetFloat("_MainAlpha", 1f);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (EffectBase effect in effectSubmodule.effectCollection["Generate"])
|
||||
{
|
||||
effect.Recover();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class DTMNoteVisual
|
||||
{
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new Beatmap.DTMNoteVisual_BM(elementName, elementGuid, tags,
|
||||
parentElement.matchedBM as GameElement_BM, themeBundleName, objectName, isHighlighted);
|
||||
}
|
||||
|
||||
public override void SetHighlight()
|
||||
{
|
||||
//List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
|
||||
|
||||
//partRendererList.ForEach(rend => Destroy(rend.material));
|
||||
|
||||
if (note is Tap or Hold)
|
||||
{
|
||||
extraPartList[0].gameObject.SetActive(isHighlighted);
|
||||
}
|
||||
|
||||
/*if (!isHighlighted)
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
partRendererList[i].material = Instantiate(normalMaterialList[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
partRendererList[i].material = Instantiate(highlightMaterialList[i]);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteVisual_BM : NoteVisualBase_BM
|
||||
{
|
||||
public DTMNoteVisual_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteVisual_BM(string elementName, Guid id, List<string> tags,
|
||||
GameElement_BM parent, string themeBundleName, string objectName, bool isHighlighted) :
|
||||
base(elementName, id, tags, parent, themeBundleName, objectName, isHighlighted)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMNoteVisual.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isHighlighted);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMNoteVisual.GenerateElement(elementName, Guid.NewGuid(), tags, false, themeBundleName,
|
||||
objectName, parent, isHighlighted);
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public partial class DTMNoteVisual : NoteVisualBase
|
||||
{
|
||||
#region [暴露属性字段] Exposed Fields
|
||||
public List<List<Material>> normalMaterialList;
|
||||
public List<List<Material>> highlightMaterialList;
|
||||
#endregion
|
||||
|
||||
#region [生命周期与工厂] Lifecycle & Factory
|
||||
public new static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
|
||||
{
|
||||
DTMNoteVisual noteVisual = NoteVisualBase.GenerateElement(elementName, id, tags,
|
||||
isFirstGenerated, themeBundleName, objectName, parentElement, isHighlighted).GetComponent<DTMNoteVisual>();
|
||||
|
||||
return noteVisual;
|
||||
}
|
||||
|
||||
public override void FirstSetUpObject(bool isFirstGenerated)
|
||||
{
|
||||
NoteBase note = parentElement as NoteBase;
|
||||
if (note == null) throw new System.Exception("NoteVisual只能生成在Note下。");
|
||||
this.note = note;
|
||||
note.noteVisual = this;
|
||||
|
||||
if (isFirstGenerated)
|
||||
{
|
||||
note.noteJudgeSubmodule.AddJudgeUnit("TouchArea");
|
||||
effectSubmodule.effectCollection["Generate"].Add(new DTMNoteGenerateExpand(this, 1f, 0.2f));
|
||||
effectSubmodule.effectCollection["Perfect"].Add(new DTMNotePerfectBurst(this));
|
||||
if (objectName.Contains("Tap"))
|
||||
{
|
||||
effectSubmodule.effectCollection["Good"].Add(new DTMNoteGoodBurst(this));
|
||||
effectSubmodule.effectCollection["Bad"].Add(new DTMNoteBadBurst(this));
|
||||
}
|
||||
effectSubmodule.effectCollection["Miss"].Add(new DTMNoteMissTransparent(this, 0.2f));
|
||||
}
|
||||
}
|
||||
|
||||
public override void AfterInitialize()
|
||||
{
|
||||
base.AfterInitialize();
|
||||
Recover();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [视觉控制与恢复] Visual Controls
|
||||
public override void Recover()
|
||||
{
|
||||
foreach (GameObject part in notePartList)
|
||||
{
|
||||
Renderer rend = part.GetComponent<Renderer>();
|
||||
if (rend != null)
|
||||
{
|
||||
rend.material.SetFloat("_MainAlpha", 1f);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (EffectBase effect in effectSubmodule.effectCollection["Generate"])
|
||||
{
|
||||
effect.Recover();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
public partial class DTMNoteVisual
|
||||
{
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new Beatmap.DTMNoteVisual_BM(elementName, elementGuid, tags,
|
||||
parentElement.matchedBM as GameElement_BM, themeBundleName, objectName, isHighlighted);
|
||||
}
|
||||
|
||||
public override void SetHighlight()
|
||||
{
|
||||
//List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
|
||||
|
||||
//partRendererList.ForEach(rend => Destroy(rend.material));
|
||||
|
||||
if (note is Tap or Hold)
|
||||
{
|
||||
extraPartList[0].gameObject.SetActive(isHighlighted);
|
||||
}
|
||||
|
||||
/*if (!isHighlighted)
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
partRendererList[i].material = Instantiate(normalMaterialList[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
partRendererList[i].material = Instantiate(highlightMaterialList[i]);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -11,13 +11,16 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public partial class DTMNoteVisualHold : DTMNoteVisual, INoteVisualHold, IHaveTransformSubmodule
|
||||
{
|
||||
#region [运行时缓存数据与暴露属性] Fields
|
||||
public Hold hold { get; set; }
|
||||
|
||||
public MeshGenerator meshGenerator;
|
||||
public SplinePositioner headPoint, tailPoint;
|
||||
private MaterialPropertyBlock materialPropertyBlock;
|
||||
public override Vector3 noteVisualPosition => headPoint.transform.position;
|
||||
#endregion
|
||||
|
||||
#region [生命周期与工厂] Lifecycle & Factory
|
||||
public new static DTMNoteVisualHold GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
|
||||
{
|
||||
@@ -77,9 +80,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
|
||||
// judgeEffect.transform.position = tailPoint.transform.position;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region [视觉控制与恢复] Visual Controls
|
||||
public override void Recover()
|
||||
{
|
||||
foreach (GameObject part in notePartList)
|
||||
@@ -113,16 +116,20 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
public partial class DTMNoteVisualHold
|
||||
{
|
||||
#region [数据导出与巡检] Export & UI
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new DTMNoteVisualHold_BM(elementName, elementGuid, tags,
|
||||
themeBundleName, objectName, parentElement.matchedBM as GameElement_BM, isHighlighted);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region [位移更新逻辑] Positional Updates
|
||||
private float startPercent, endPercent;
|
||||
|
||||
public void UpdateHoldInMovableTrack()
|
||||
@@ -190,35 +197,6 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
|
||||
}).AddTo(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class DTMNoteVisualHold_BM : DTMNoteVisual_BM
|
||||
{
|
||||
public DTMNoteVisualHold_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DTMNoteVisualHold_BM(string elementName, Guid id, List<string> tags,
|
||||
string themeBundleName, string objectName, GameElement_BM parent, bool isHighlighted) :
|
||||
base(elementName, id, tags, parent, themeBundleName, objectName, isHighlighted)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = DTMNoteVisualHold.GenerateElement(elementName, elementGuid, tags, false,
|
||||
themeBundleName, objectName, GetElement(attachedElementGuid), isHighlighted);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return DTMNoteVisualHold.GenerateElement(elementName, Guid.NewGuid(), tags, false,
|
||||
themeBundleName, objectName, parent, isHighlighted);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user