using System.Collections; using System.Collections.Generic; using UnityEngine; public class ActionSetVelocity : ActionBase { PhysicsBody m_Body; Vector3 m_Velocity; public ActionSetVelocity(PhysicsBody body, Vector3 velocity) { m_Body = body; m_Velocity = velocity; } public override void Execute() { m_Body.Velocity = m_Velocity; } }