Пример #1
0
        private void InitStageChain()
        {
            int lv = 1;
            NormalStageHandler handler1 = new NormalStageHandler(this, lv++, 3, CharacterName.nZombie, 6, 0.05f);
            NormalStageHandler handler2 = new NormalStageHandler(this, lv++, 6, CharacterName.nZombie, 12, 0.1f);
            NormalStageHandler handler3 = new NormalStageHandler(this, lv++, 100, CharacterName.nZombie, 100, 1f);


            handler1.SetNextHandler(handler2)
            .SetNextHandler(handler3);
            mRootHandler = handler1;
        }
Пример #2
0
 public IStageHandler SetNextHandler(IStageHandler handler)
 {
     mNextHandler = handler;
     return(mNextHandler);
 }