Exemplo n.º 1
0
        void StopVelocity()
        {
            if (playerMovement != null)
            {
                playerMovement.GetRigidbody().velocity = Vector3.zero;
            }

            if (lastEnemy != null)
            {
                lastEnemy.GetComponent <Rigidbody>().velocity = Vector3.zero;
            }
        }