微调
This commit is contained in:
@@ -89,8 +89,14 @@ namespace Ichni.RhythmGame
|
||||
#if UNITY_STANDALONE
|
||||
return new FullScreenNearTimeJudgeUnit(attachedNote);
|
||||
#elif UNITY_ANDROID || UNITY_IOS
|
||||
//return new FullScreenNearTimeJudgeUnit(attachedNote);
|
||||
return new TouchAreaJudgeUnit(attachedNote, areaRadius);
|
||||
if (SettingsManager.instance.gameSettings.judgeType)
|
||||
{
|
||||
return new FullScreenNearTimeJudgeUnit(attachedNote);
|
||||
}
|
||||
else
|
||||
{
|
||||
return new TouchAreaJudgeUnit(attachedNote, areaRadius);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ObjectTracker : 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: bb900d6a5df01384481372f1fdeca79f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -22,6 +22,7 @@ namespace Ichni
|
||||
public int languageIndex = 0;
|
||||
|
||||
public bool debugMode = false;
|
||||
public bool judgeType = false;
|
||||
|
||||
public GameSettings()
|
||||
{
|
||||
@@ -29,7 +30,7 @@ namespace Ichni
|
||||
}
|
||||
|
||||
public GameSettings(int masterVolume, int musicVolume, int soundEffectVolume, int uiVolume,
|
||||
int beatmapOffset, int targetFrame, int resolutionLevel, int languageIndex, bool debugMode)
|
||||
int beatmapOffset, int targetFrame, int resolutionLevel, int languageIndex, bool debugMode, bool judgeType)
|
||||
{
|
||||
this.masterVolume = masterVolume;
|
||||
this.musicVolume = musicVolume;
|
||||
@@ -40,6 +41,7 @@ namespace Ichni
|
||||
this.resolutionLevel = resolutionLevel;
|
||||
this.languageIndex = languageIndex;
|
||||
this.debugMode = debugMode;
|
||||
this.judgeType = judgeType;
|
||||
}
|
||||
|
||||
public void ApplyVolume()
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Ichni
|
||||
{
|
||||
gameSettings = new GameSettings(
|
||||
50, 50, 50, 50,
|
||||
0, 60, 3, 0, false);
|
||||
0, 60, 3, 0, false, false);
|
||||
}
|
||||
|
||||
gameSettings.ApplyVolume();
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace Ichni.Menu
|
||||
public class DebugSettingsWindow : SettingsWindow
|
||||
{
|
||||
public Switch debugModeSwitch;
|
||||
public Switch judgeTypeSwitch;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -16,11 +17,18 @@ namespace Ichni.Menu
|
||||
{
|
||||
gameSettings.debugMode = debugModeSwitch.GetValue();
|
||||
};
|
||||
|
||||
judgeTypeSwitch.SetUp(gameSettings.judgeType, "Menu UI/Settings_Judge_Type");
|
||||
judgeTypeSwitch.updateValueAction = () =>
|
||||
{
|
||||
gameSettings.judgeType = judgeTypeSwitch.GetValue();
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetValuesFromSettings()
|
||||
{
|
||||
debugModeSwitch.SetValue(gameSettings.debugMode);
|
||||
judgeTypeSwitch.SetValue(gameSettings.judgeType);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user