예제 #1
0
    private void ResetRocket()
    {
        isFlying                 = false;
        _lastDistance            = 9999f;
        transform.position       = _startPosition;
        _rotateToPointer.enabled = true;
        _rotateToPointer.Update();

        _constantForce.enabled     = false;
        _rigidbody.velocity        = Vector2.zero;
        _rigidbody.angularVelocity = 0;
        Exhaust.gameObject.SetActive(false);
        _audioSource.Stop();
    }