private Action InternalPlaySubAction(Action _parentAction, string _actionName, float _length, GameObject[] _gameObjects)
        {
            Action action = this.LoadActionResource(_actionName);

            if (action == null)
            {
                Debug.LogError("Playing \"" + _actionName + "\" failed. Asset not found!");
                return(null);
            }
            Action action2 = ClassObjPool <Action> .Get();

            action2.LoadAction(action, _gameObjects);
            action2.loop         = false;
            action2.length       = ActionUtility.SecToMs(_length);
            action2.parentAction = _parentAction;
            this.actionList.Add(action2);
            return(action2);
        }
        private Action InternalPlayAction(string _actionName, bool _autoPlay, bool _stopConflictAction, GameObject[] _gameObjects)
        {
            GameObject gameObject = null;

            for (int i = 0; i < _gameObjects.Length; i++)
            {
                GameObject gameObject2 = _gameObjects[i];
                if (!(gameObject2 == null) && this.objectReferenceSet.ContainsKey(gameObject2))
                {
                    gameObject = gameObject2;
                    break;
                }
            }
            if (gameObject && _stopConflictAction)
            {
                this.conflictActionsToStop.Clear();
                ListView <Action>             listView   = this.objectReferenceSet[gameObject];
                ListView <Action> .Enumerator enumerator = listView.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    Action current = enumerator.Current;
                    if (!current.unstoppable)
                    {
                        this.conflictActionsToStop.Add(current);
                    }
                }
                ListView <Action> .Enumerator enumerator2 = this.conflictActionsToStop.GetEnumerator();
                while (enumerator2.MoveNext())
                {
                    Action current2 = enumerator2.Current;
                    current2.Stop(false);
                }
            }
            Action action = this.LoadActionResource(_actionName);

            if (action == null)
            {
                Debug.LogError("Playing \"" + _actionName + "\" failed. Asset not found!");
                return(null);
            }
            Action action2 = ClassObjPool <Action> .Get();

            action2.enabled             = _autoPlay;
            action2.refGameObjectsCount = _gameObjects.Length;
            action2.LoadAction(action, _gameObjects);
            this.actionList.Add(action2);
            for (int j = 0; j < _gameObjects.Length; j++)
            {
                GameObject gameObject3 = _gameObjects[j];
                if (!(gameObject3 == null))
                {
                    ListView <Action> listView2 = null;
                    if (this.objectReferenceSet.TryGetValue(gameObject3, out listView2))
                    {
                        listView2.Add(action2);
                    }
                    else
                    {
                        listView2 = new ListView <Action>();
                        listView2.Add(action2);
                        this.objectReferenceSet.Add(gameObject3, listView2);
                    }
                }
            }
            return(action2);
        }