private void Update() { if (_pilotActionMap.PollButtonEvent(WingsuitAction.Respawn) == ButtonEvent.Down) { _pooledPilot.Dispose(); _pilot.transform.Set(_originalTransform); _pooledPilot = _pilotPool.Take(); } }
private void RemoveNatPunchAttempt(IPooledObject <PunchAttempt> attempt) { _natPunchAttempts.Remove(attempt.Instance.PunchId); _natPunchRegistrations.Remove(attempt); attempt.Dispose(); }