예제 #1
0
        public Skill GetFsmSelection(GameObject go)
        {
            if (go == null)
            {
                return(null);
            }
            using (List <SkillSelectionHistory.HistoryItem> .Enumerator enumerator = this.recentlySelectedList.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    SkillSelectionHistory.HistoryItem current = enumerator.get_Current();
                    if (current.fsm != null && current.fsm.get_GameObject() == go)
                    {
                        Skill fsm = current.fsm;
                        return(fsm);
                    }
                }
            }
            PlayMakerFSM playMakerFSM = SkillSelection.FindFsmComponentOnGameObject(go);

            if (!(playMakerFSM != null))
            {
                return(null);
            }
            return(playMakerFSM.get_Fsm());
        }
예제 #2
0
 public static PlayMakerFSM FindFsmComponentOnGameObject(GameObject go)
 {
     return(SkillSelection.FindFsmComponentOnGameObject(go));
 }