fix: widen note lanes and clear warnings
This commit is contained in:
@@ -8,7 +8,6 @@ namespace VRBeats
|
||||
{
|
||||
[SerializeField] private float minCutSpeed = 0.5f;
|
||||
[SerializeField] private float maxCutAngle = 40f;
|
||||
[SerializeField] private OnSliceAction sliceAction = null;
|
||||
[SerializeField] private GameEvent onCorrectSlice = null;
|
||||
[SerializeField] private GameEvent onIncorrectSlice = null;
|
||||
[SerializeField] private GameEvent onPlayerMiss = null;
|
||||
@@ -112,4 +111,3 @@ namespace VRBeats
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace VRBeats
|
||||
[SerializeField] private BoxCollider playZone = null;
|
||||
[SerializeField] private Transform player = null;
|
||||
[SerializeField] private VR_BeatSettings settings = null;
|
||||
[SerializeField] private GameEvent onGameOver = null;
|
||||
|
||||
private AudioManager audioManager = null;
|
||||
private EnviromentController enviromentController = null;
|
||||
private PlayableDirector playableDirector = null;
|
||||
@@ -24,20 +22,17 @@ namespace VRBeats
|
||||
|
||||
public Transform Player { get { return player; } }
|
||||
|
||||
private int playerConsecutiveMiss = 0;
|
||||
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
audioManager = FindObjectOfType<AudioManager>();
|
||||
enviromentController = FindObjectOfType<EnviromentController>();
|
||||
playableDirector = FindObjectOfType<PlayableDirector>();
|
||||
audioManager = FindFirstObjectByType<AudioManager>();
|
||||
enviromentController = FindFirstObjectByType<EnviromentController>();
|
||||
playableDirector = FindFirstObjectByType<PlayableDirector>();
|
||||
}
|
||||
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
playerConsecutiveMiss = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,8 @@ namespace VRBeats
|
||||
|
||||
private void Rotate()
|
||||
{
|
||||
float rotation = Random.Range(-maxRotation , maxRotation);
|
||||
float direction = Random.value < 0.5f ? -1.0f : 1.0f;
|
||||
float rotation = Random.Range(minRotation, maxRotation) * direction;
|
||||
transform.RotateTween( Vector3.forward , rotation , animTime).SetEase(ease).SetOnComplete( Rotate );
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace VRBeats
|
||||
}
|
||||
else
|
||||
{
|
||||
VolumeSingleton[] instancesArray = FindObjectsOfType<VolumeSingleton>();
|
||||
VolumeSingleton[] instancesArray = FindObjectsByType<VolumeSingleton>(FindObjectsSortMode.None);
|
||||
|
||||
foreach (var volumeSingleton in instancesArray)
|
||||
{
|
||||
@@ -30,4 +30,3 @@ namespace VRBeats
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace Platinio.UI
|
||||
Canvas canvas = null;
|
||||
|
||||
//just return the first encounter canvas
|
||||
canvas = GameObject.FindObjectOfType<Canvas>();
|
||||
canvas = GameObject.FindFirstObjectByType<Canvas>();
|
||||
|
||||
if (canvas != null)
|
||||
{
|
||||
@@ -144,4 +144,3 @@ namespace Platinio.UI
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace VRBeats
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
enviromentController = FindObjectOfType<EnviromentController>();
|
||||
enviromentController = FindFirstObjectByType<EnviromentController>();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace VRBeats
|
||||
initialValue += "0";
|
||||
}
|
||||
|
||||
scoreManager = FindObjectOfType<ScoreManager>();
|
||||
scoreManager = FindFirstObjectByType<ScoreManager>();
|
||||
|
||||
}
|
||||
|
||||
@@ -58,4 +58,3 @@ namespace VRBeats
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user