예제 #1
0
    public void StartShake()
    {
        float?holdAtTime = null;

        if (this.m_Hold)
        {
            holdAtTime = new float?(this.m_HoldAtSec);
        }
        CameraShakeMgr.Shake(Camera.main, this.m_Amount, this.m_IntensityCurve, holdAtTime);
    }
예제 #2
0
 private void Finished()
 {
     SoundManager.Get().Play(this.m_ImpactSound);
     CameraShakeMgr.Shake(Camera.main, new Vector3(0.15f, 0.15f, 0.15f), 0.9f);
 }