Chapter 2 和一些优先度调整
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MOONoteGenerateExpand : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07a245da36e3b0548a9252d9c053c464
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,77 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DG.Tweening;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit.Beatmap;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit
|
||||
{
|
||||
public class MOONoteHoldingAnimation : NoteHoldingEffect
|
||||
{
|
||||
MOONoteVisualHoldStatic mooNoteVisual => noteVisual as MOONoteVisualHoldStatic;
|
||||
|
||||
public MOONoteHoldingAnimation(MOONoteVisualHoldStatic noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = GetHoldingTime();
|
||||
}
|
||||
|
||||
public override void Recover()
|
||||
{
|
||||
this.effectTime = GetHoldingTime();
|
||||
mooNoteVisual.holdingEffect.transform.localScale = Vector3.zero;
|
||||
mooNoteVisual.holdingEffect.GetComponent<SpriteRenderer>().color = new Color(0.5314465f, 1, 0.9687631f);
|
||||
mooNoteVisual.holdingEffect.GetComponent<Animator>().CrossFade("Idle", 0f);
|
||||
}
|
||||
|
||||
public override void PreExecute()
|
||||
{
|
||||
mooNoteVisual.holdingEffect.transform.DOScale(0.45f, 0.25f).SetEase(Ease.OutCirc);
|
||||
mooNoteVisual.holdingEffect.GetComponent<Animator>().CrossFade("Holding", 0f);
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
mooNoteVisual.holdingEffect.transform.DOScale(1f, 0.25f).SetEase(Ease.OutCirc);
|
||||
mooNoteVisual.holdingEffect.GetComponent<SpriteRenderer>().DOFade(0f, 0.25f).SetEase(Ease.OutCirc);
|
||||
}
|
||||
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new MOONoteHoldingAnimation_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("MOO Note Holding Animation");
|
||||
var subcontainer = container.GenerateSubcontainer(3);
|
||||
var holdingTimeText = inspector.GenerateHintText(this, subcontainer, () => $"Holding Time: {GetHoldingTime()}");
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class MOONoteHoldingAnimation_BM : NoteHoldingEffect_BM
|
||||
{
|
||||
public MOONoteHoldingAnimation_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MOONoteHoldingAnimation_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new MOONoteHoldingAnimation(attachedGameElement as MOONoteVisualHoldStatic);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e9b246662f8d4c5498686c4582e02c31
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,84 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit.Beatmap;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit
|
||||
{
|
||||
public class MOONotePerfectAnimation : NotePerfectEffect
|
||||
{
|
||||
MOONoteVisual mooNoteVisual => noteVisual as MOONoteVisual;
|
||||
|
||||
public MOONotePerfectAnimation(MOONoteVisual noteVisual)
|
||||
{
|
||||
this.note = noteVisual.note;
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = 0f;
|
||||
}
|
||||
|
||||
public override void Recover()
|
||||
{
|
||||
//mooNoteVisual.judgeEffectAnimator.ResetTrigger("Perfect");
|
||||
mooNoteVisual.judgeEffectAnimator.CrossFade("Idle", 0f);
|
||||
noteVisual.judgeEffect.SetActive(false);
|
||||
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
|
||||
/*if (mooNoteVisual is BasicHoldVisualMesh holdVisualMesh)
|
||||
{
|
||||
holdVisualMesh.notePartList[1].SetActive(true);
|
||||
holdVisualMesh.notePartList[2].SetActive(true);
|
||||
}*/
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
{
|
||||
noteVisual.judgeEffect.SetActive(true);
|
||||
mooNoteVisual.judgeEffectAnimator.CrossFade("Perfect", 0f);
|
||||
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
|
||||
/*if (noteVisual is BasicHoldVisualMesh holdVisualMesh)
|
||||
{
|
||||
holdVisualMesh.notePartList[1].SetActive(false);
|
||||
holdVisualMesh.notePartList[2].SetActive(false);
|
||||
}*/
|
||||
}
|
||||
|
||||
public override EffectBase_BM ConvertToBM()
|
||||
{
|
||||
return new MOONotePerfectAnimation_BM(effectTime);
|
||||
}
|
||||
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
var container = inspector.GenerateContainer("Basic Note Perfect Burst");
|
||||
//var subcontainer = container.GenerateSubcontainer(3);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class MOONotePerfectAnimation_BM : NotePerfectEffect_BM
|
||||
{
|
||||
public MOONotePerfectAnimation_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MOONotePerfectAnimation_BM(float effectTime) : base(effectTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
|
||||
{
|
||||
return new MOONotePerfectAnimation(attachedGameElement as MOONoteVisual);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1e8f60765910da64691915da619fbe70
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit.Beatmap;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit
|
||||
{
|
||||
public partial class MOONoteVisual : NoteVisualBase
|
||||
{
|
||||
public Animator judgeEffectAnimator;
|
||||
|
||||
public static MOONoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, GameElement parentElement, string themeBundleName, string objectName)
|
||||
{
|
||||
MOONoteVisual noteVisual = SubstantialObject.GenerateElement(elementName, id, tags,
|
||||
isFirstGenerated, themeBundleName, objectName, parentElement).GetComponent<MOONoteVisual>();
|
||||
|
||||
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)
|
||||
{
|
||||
effectSubmodule.effectCollection["Perfect"].Add(new MOONotePerfectAnimation(this));
|
||||
/*effectSubmodule.effectCollection["Generate"].Add(new BasicNoteGenerateExpand(this));
|
||||
|
||||
effectSubmodule.effectCollection["Good"].Add(new BasicNoteGoodBurst(this));
|
||||
effectSubmodule.effectCollection["Bad"].Add(new BasicNoteBadShrink(this));
|
||||
effectSubmodule.effectCollection["Miss"].Add(new BasicNoteMissPale(this));*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class MOONoteVisual
|
||||
{
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new MOONoteVisual_BM(elementName, elementGuid, tags, parentElement.matchedBM as GameElement_BM, themeBundleName, objectName);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class MOONoteVisual_BM : SubstantialObject_BM
|
||||
{
|
||||
public MOONoteVisual_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MOONoteVisual_BM(string elementName, Guid id, List<string> tags,
|
||||
GameElement_BM parent, string themeBundleName, string objectName) :
|
||||
base(elementName, id, tags, parent, themeBundleName, objectName)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = MOONoteVisual.GenerateElement(elementName, elementGuid, tags, false,
|
||||
GetElement(attachedElementGuid), themeBundleName, objectName);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return MOONoteVisual.GenerateElement(elementName, Guid.NewGuid(), tags, false, parent, themeBundleName, objectName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0871b3295321e0e45a996669c5c964a3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Ichni.RhythmGame.ThemeBundles.Basic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame.ThemeBundles.MetropolisOnOrbit
|
||||
{
|
||||
public partial class MOONoteVisualHoldStatic : NoteVisualBaseHold
|
||||
{
|
||||
public GameObject holdingEffect;
|
||||
|
||||
public static MOONoteVisualHoldStatic GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, GameElement parentElement, string themeBundleName, string objectName)
|
||||
{
|
||||
MOONoteVisualHoldStatic holdVisualStatic = SubstantialObject.GenerateElement(elementName, id, tags,
|
||||
isFirstGenerated, themeBundleName, objectName, parentElement).GetComponent<MOONoteVisualHoldStatic>();
|
||||
|
||||
return holdVisualStatic;
|
||||
}
|
||||
|
||||
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;
|
||||
this.hold = note as Hold;
|
||||
|
||||
if (isFirstGenerated)
|
||||
{
|
||||
effectSubmodule.effectCollection["Holding"].Add(new MOONoteHoldingAnimation(this));
|
||||
/*
|
||||
effectSubmodule.effectCollection["Generate"].Add(new BasicNoteGenerateExpand(this));
|
||||
effectSubmodule.effectCollection["Perfect"].Add(new BasicNotePerfectBurst(this));
|
||||
effectSubmodule.effectCollection["Good"].Add(new BasicNoteGoodBurst(this));
|
||||
effectSubmodule.effectCollection["Bad"].Add(new BasicNoteBadShrink(this));
|
||||
effectSubmodule.effectCollection["Miss"].Add(new BasicNoteMissPale(this));
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public partial class MOONoteVisualHoldStatic
|
||||
{
|
||||
public override void SaveBM()
|
||||
{
|
||||
matchedBM = new Beatmap.MOONoteVisualHoldStatic_BM(elementName, elementGuid, tags, parentElement.matchedBM as GameElement_BM,
|
||||
themeBundleName, objectName);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Beatmap
|
||||
{
|
||||
public class MOONoteVisualHoldStatic_BM : SubstantialObject_BM
|
||||
{
|
||||
public MOONoteVisualHoldStatic_BM()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MOONoteVisualHoldStatic_BM(string elementName, Guid id, List<string> tags,
|
||||
GameElement_BM parent, string themeBundleName, string objectName) :
|
||||
base(elementName, id, tags, parent, themeBundleName, objectName)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void ExecuteBM()
|
||||
{
|
||||
matchedElement = MOONoteVisualHoldStatic.GenerateElement(elementName, elementGuid, tags, false,
|
||||
GetElement(attachedElementGuid), themeBundleName, objectName);
|
||||
}
|
||||
|
||||
public override GameElement DuplicateBM(GameElement parent)
|
||||
{
|
||||
return MOONoteVisualHoldStatic.GenerateElement(elementName, Guid.NewGuid(), tags, false, parent, themeBundleName, objectName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 00f5f52eac29fed48a96cd668564836d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user