// Update is called once per frame void FixedUpdate() { if (playerManager == null) { playerManager = gm.GetPlayerManager(); } if (playerManager.state == EnumPTrapezeState.InAir && currentSwipe.Count != 0 && !playerManager.HasTarget()) { timer += Time.deltaTime; if (timer >= execTime) { ExecuteTrick(); } } else { if (timer != 0) { timer = 0; } if (currentSwipe.Count != 0) { currentSwipe.Clear(); } } }