架构大更

This commit is contained in:
SoulliesOfficial
2026-03-20 11:56:50 -04:00
parent e60ef64d01
commit d09b58fd80
3663 changed files with 15232012 additions and 105579 deletions

View File

@@ -7,20 +7,20 @@ namespace AllIn1VfxToolkit.Demo.Scripts
[SerializeField] private float shakeAmount = 0.15f;
[SerializeField] private bool doShakeOnStart;
[SerializeField] private float shakeOnStartDelay;
private void Start()
{
if(doShakeOnStart)
if (doShakeOnStart)
{
if(shakeOnStartDelay < Time.deltaTime) DoShake();
if (shakeOnStartDelay < Time.deltaTime) DoShake();
else Invoke(nameof(DoShake), shakeOnStartDelay);
}
}
public void DoShake()
{
if(AllIn1Shaker.i != null) AllIn1Shaker.i.DoCameraShake(shakeAmount);
else Debug.LogError($"No AllIn1Shaker found. Please add one to the scene");
if (AllIn1Shaker.i != null) AllIn1Shaker.i.DoCameraShake(shakeAmount);
else Debug.LogError("No AllIn1Shaker found. Please add one to the scene");
}
}
}