Пример #1
0
 public void AddState(TransitionState state)
 {
     if (_stateList.Contains(state))
     {
         return;
     }
     _stateList.Add(state);
 }
Пример #2
0
 public void SetTo(TransitionState data)
 {
     _nextState = data;
 }
Пример #3
0
        public GameObject GetObject(TransitionState state)
        {
            var cash = InstanceIdCash.Instance.GetId(_instanceIdDic[state]);

            return(cash.gameObject);
        }
Пример #4
0
        public void SetObject(TransitionState state, GameObject obj)
        {
            var holder = InstanceIdHolder.AddIdHolder(obj);

            _instanceIdDic.Add(state, holder.GetInstanceID());
        }
Пример #5
0
 public void SetLineFromTo(TransitionState from, TransitionState to, AbstractTransitionLine line)
 {
     line.SetTo(to);
     from.AddLineList(line);
 }