Пример #1
0
        /// <summary>
        /// Add this state to the given group
        /// </summary>
        /// <param name="group">Group to add this state to</param>
        public void AddToGroup(StateGroup <TState> group)
        {
            this.CheckInitialized();
            if (group == null)
            {
                throw new ArgumentNullException(nameof(group));
            }

            if (!this.groups.Contains(group))
            {
                this.groups.Add(group);
            }
            group.AddStateInternal(this.self);
        }
Пример #2
0
 /// <summary>
 /// Add this state to the given group
 /// </summary>
 /// <param name="group">Group to add this state to</param>
 public void AddToGroup(StateGroup group)
 {
     this.innerState.AddGroup(group);
     group.AddStateInternal(this);
 }