Files
BeatSaber/Assets/VRBeatsKit/Scripts/Spawneable/SpawnEventInfo.cs
T
2026-05-28 19:01:20 +09:00

39 lines
844 B
C#

using UnityEngine;
namespace VRBeats
{
public enum Direction
{
UpperLeft = 0,
Up,
UpperRight,
Left,
Center,
Right,
LowerLeft,
Down,
LowerRight
}
public enum ColorSide
{
Left,
Right
}
[System.Serializable]
public class SpawnEventInfo
{
public Direction hitDirection = Direction.Up;
public ColorSide colorSide = ColorSide.Right;
public bool useSpark = true;
public Vector3 position = Vector3.zero;
public Vector3 rotation = Vector3.zero;
public float speed = 2.0f;
public int speedMultiplier = 1;
// 0이면 Settings.TargetTravelTime 사용, 양수면 해당 시간 동안 일정 속도로 이동
public float travelTimeOverride = 0f;
}
}