/// <summary> /// Activates an action by copying values from another. /// </summary> /// <param name="name">The name of the action to activate.</param> /// <param name="other">The source action.</param> public void Activate(string name, ActorAction other) { ActorAction action = this.GetOrCreateAction(name); if (action != null) { action.CopyFrom(other); } }
public void Activate(string actionName, ActorAction other) { ActorAction action = this.GetOrCreateAction(actionName); action?.CopyFrom(other); }