优化场景

This commit is contained in:
2024-10-26 23:58:39 +08:00
parent f8e241083e
commit 9b9c06931b
4 changed files with 34 additions and 4501 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -46,7 +46,7 @@ Material:
m_Ints: []
m_Floats:
- Vector1_c9f2135c9d254951b22c018d295f8558: 0.003
- _blurOffset: 0.011229792
- _blurOffset: 0.006915754
m_Colors: []
m_BuildTextureStacks: []
--- !u!114 &268278646524644520

View File

@@ -28,8 +28,15 @@ namespace Views
private void OnClickTouch ()
{
this._time += 0.1f;
GameManager.Instance.Vibrator (VibratorScale.Small);
this._time += 0.25f;
if (this._time > 1)
{
this._time = 1;
}
#if !UNITY_EDITOR
VibratorImp.Instance.Vibrator_Normal (0.2f , (int)(math.clamp (this._time , 0 , 1) * 50));
#endif
// GameManager.Instance.Vibrator (VibratorScale.Small);
CameraImpulseUtils.Instance.UniformImpulseCamera (0.5f , math.clamp (this._time , 0 , 2));
}
@@ -41,7 +48,12 @@ namespace Views
{
this._clickBtn.gameObject.SetActive (true);
}
this._time -= Time.deltaTime;
if (this._time > 0)
{
this._text.SetActive (false);
this._time -= Time.deltaTime;
}
if (this._time <= 0 && !this._text.activeSelf)
{
this._text.SetActive (true);