2025-06-03 02:42:28 -04:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Sirenix.OdinInspector;
|
2025-08-11 14:04:06 -04:00
|
|
|
using TMPro;
|
2025-06-03 02:42:28 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.Serialization;
|
2025-07-08 14:28:40 -04:00
|
|
|
using Event = AK.Wwise.Event;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
|
|
|
|
[CreateAssetMenu(fileName = "BasePrefabsCollection", menuName = "Ichni/BasePrefabsCollection", order = 0)]
|
2025-08-11 14:04:06 -04:00
|
|
|
public partial class BasePrefabsCollection : SerializedScriptableObject
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("基础预制体")] public GameObject emptyObject;
|
2025-06-03 02:42:28 -04:00
|
|
|
public GameObject elementFolder;
|
|
|
|
|
public GameObject gameCamera;
|
|
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("Track相关")] public GameObject track;
|
2025-06-03 02:42:28 -04:00
|
|
|
public GameObject trackDisplay;
|
|
|
|
|
public GameObject pathNode;
|
|
|
|
|
public Material defaultTrackMaterial;
|
2025-07-10 08:42:30 -04:00
|
|
|
public GameObject particleTracker;
|
2026-03-14 03:13:10 -04:00
|
|
|
public GameObject crossTrackPoint;
|
|
|
|
|
public GameObject trackPercentPoint;
|
|
|
|
|
public GameObject trackHeadPoint;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("Trail相关")] public GameObject trail;
|
2025-06-03 02:42:28 -04:00
|
|
|
public Material defaultTrailMaterial;
|
|
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("Note 相关")] public GameObject tapNote;
|
2025-06-03 02:42:28 -04:00
|
|
|
public GameObject stayNote;
|
|
|
|
|
public GameObject holdNote;
|
|
|
|
|
public GameObject flickNote;
|
2025-08-11 14:04:06 -04:00
|
|
|
|
|
|
|
|
[Title("Note 判定UI")] public GameObject fullscreenNearTimeHint;
|
2025-06-03 02:42:28 -04:00
|
|
|
public GameObject areaHint;
|
|
|
|
|
public GameObject triggerHint;
|
|
|
|
|
|
2026-03-19 14:14:28 -04:00
|
|
|
[Title("Effect相关")]
|
|
|
|
|
public Material defaultParticleMaterial;
|
2025-08-22 14:54:40 -04:00
|
|
|
public GameObject particleEmitter;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("Background相关")] public Sprite defaultBackground;
|
2025-06-03 02:42:28 -04:00
|
|
|
public Material defaultSkyboxMaterial;
|
|
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("音频相关")] public GameObject audioEventObject;
|
2025-07-08 14:28:40 -04:00
|
|
|
public Dictionary<string, Event> noteSounds;
|
2025-07-26 04:20:25 -04:00
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
[Title("字体")] public Dictionary<string, TMP_FontAsset> fonts;
|
|
|
|
|
|
2025-07-26 04:20:25 -04:00
|
|
|
[Title("Debug")] public GameObject judgeRankHint;
|
|
|
|
|
public GameObject tapInputMark;
|
|
|
|
|
public GameObject touchInputMark;
|
|
|
|
|
|
2025-08-11 14:04:06 -04:00
|
|
|
public GameObject directionalSwipeInputMark;
|
|
|
|
|
public GameObject genericSwipeInputMark;
|
2025-09-05 10:14:45 -04:00
|
|
|
|
|
|
|
|
public GameObject inputEndMark;
|
|
|
|
|
public GameObject inputCanceledMark;
|
2025-06-03 02:42:28 -04:00
|
|
|
}
|
2025-08-11 14:04:06 -04:00
|
|
|
|
|
|
|
|
public partial class BasePrefabsCollection
|
|
|
|
|
{
|
|
|
|
|
public void PrepareAudios()
|
|
|
|
|
{
|
|
|
|
|
foreach (KeyValuePair<string, Event> sound in noteSounds)
|
|
|
|
|
{
|
2026-03-19 14:14:28 -04:00
|
|
|
AkUnitySoundEngine.PrepareEvent(AkPreparationType.Preparation_Load, new uint[] { sound.Value.PlayingId }, 1);
|
2025-08-11 14:04:06 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|