コード例 #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
ファイル: State.cs プロジェクト: modulexcite/StateMechanic
 /// <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);
 }