private void Playershoot_OnShoot(object sender, PlayerShoot.OnShootEventArg e) { Vector3 quadPostion = e.gunEndPoint; float rotation = 0f; Vector3 size = new Vector3(0.1f, 0.2f); int spawnquadindex = AddQuad(e.gunEndPoint, rotation, size, true); FunctionUpdater.Create(() => { quadPostion += new Vector3(1f, 1f) * Time.deltaTime; rotation += 360f * Time.deltaTime; UpdateQuad(spawnquadindex, quadPostion, rotation, new Vector3(0.1f, 0.2f), true); }); }
private void PlayerShoot_OnShoot(object sender, PlayerShoot.OnShootEventArg e) { Debug.DrawLine(e.gunEndPoint, e.gunAimPoint); CamShake.Instance.ShakeCamer(5f, 0.1f); }