Exemple #1
0
        public VelocityOverrideAgent StartChain(Rigidbody rb, Vector3 forward)
        {
            VelocityOverrideAgent agent = new VelocityOverrideAgent();

            agent.StartVelocityOverrideChain(rb, forward, this);
            return(agent);
        }
Exemple #2
0
 protected virtual void OnVelocityOverrideStops(VelocityOverrideAgent agent)
 {
     if (agent == voAgent)
     {
         voAgent = null;
     }
 }