You've already forked taptap2024_GJ_chidouren
优化场景
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user