public void SetStateEvent(PipeDefine.EPipeManagerState state, SystemDefine.VoidEvent func)
        {
            switch (state)
            {
            case PipeDefine.EPipeManagerState.Start:
                startEvent += func;
                break;

            case PipeDefine.EPipeManagerState.Playing:
                playingEvent += func;
                break;

            case PipeDefine.EPipeManagerState.Fall:
                fallEvent += func;
                break;
            }
        }
        public void SetState(PipeDefine.EPipeManagerState state)
        {
            managerState = state;
            switch (managerState)
            {
            case PipeDefine.EPipeManagerState.Start:
                startEvent?.Invoke();
                break;

            case PipeDefine.EPipeManagerState.Playing:
                playingEvent?.Invoke();
                break;

            case PipeDefine.EPipeManagerState.Fall:
                fallEvent?.Invoke();
                break;
            }
        }