Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        public void Activate(string actionName, ActorAction other)
        {
            ActorAction action = this.GetOrCreateAction(actionName);

            action?.CopyFrom(other);
        }