Exemplo n.º 1
0
        public override void OnEnter()
        {
            RPGCharacter ch = null;

            if (CharacterID >= 0)
            {
                ch = gameMode.ChapterManager.GetCharacterFromID(CharacterID);
                Assert.IsNotNull(ch, CharacterID + " id 角色不存在");
                gameMode.BattlePlayer.KillUnit(CharacterID, ConstTable.UNIT_DISAPPEAR_SPEED(Speed), Continue);
            }
            else
            {
                ch = gameMode.ChapterManager.GetCharacterFromCoord(TilePos);
                Assert.IsNotNull(ch, TilePos + "处不存在角色");
                gameMode.BattlePlayer.KillUnitAt(TilePos, ConstTable.UNIT_DISAPPEAR_SPEED(Speed), Continue);
            }
        }
Exemplo n.º 2
0
 private void Dead(RPGCharacter ch)
 {
     gameMode.BattlePlayer.KillUnit(ch, ConstTable.UNIT_DISAPPEAR_SPEED(), Continue, true);
 }