示例#1
0
        public void changeState(CameraFollowState state)
        {
            //Debuger.Log("changeState " + state);
            if (curStateType == state && curState != null)
            {
                return;
            }

            if (curState != null)
            {
                curState.exit();
            }
            curState = getState(state);
            curState.enter();
            curStateType = state;
        }
示例#2
0
 public void clear()
 {
     curState = null;
 }