public override void Shot(Vector3 target, RangeWeapon shooter)
        {
            m_RigidBody.isKinematic = false;

            m_Shooter = shooter;


            m_RigidBody.velocity = GetVelocity(target);
            m_RigidBody.AddRelativeTorque(Vector3.right * -5500.0f);

            m_RigidBody.detectCollisions = false;

            transform.forward = target - transform.position;
        }
Beispiel #2
0
 public abstract void Shot(Vector3 target, RangeWeapon shooter);