コード例 #1
0
        /// <summary>
        /// Creates an action group, a set which runs all actions in parallel
        /// </summary>
        /// <param name="owner">A reference to the owner of this action sequence.</param>
        /// <returns></returns>
        public static StratusActionSet Group(MonoBehaviour component)
        {
            // Construct the sequence
            StratusActionSet group = new StratusActionGroup();

            // Add it to the owner
            component.gameObject.Actions().Add(group);
            // Return it
            return(group);
        }
コード例 #2
0
        /// <summary>
        /// Creates an action group, a set which runs all actions in parallel
        /// </summary>
        /// <param name="owner">A reference to the owner of this action sequence.</param>
        /// <returns></returns>
        public static StratusActionSet Group(StratusActionsOwner owner)
        {
            // Construct the sequence
            StratusActionSet sequence = new StratusActionGroup();

            // Add it to the owner
            owner.Add(sequence);
            // Return it
            return(sequence);
        }