Esempio n. 1
0
    private MinionType_Script CreatePiece(CharacterNameType pieceType)
    {
        MinionType_Script piece = (MinionType_Script)BattleManagerScript.Instance.CreateChar(new CharacterBaseInfoClass(pieceType.ToString(), CharacterSelectionType.Up,
                                                                                                                        new List <ControllerType> {
            ControllerType.Enemy
        }, pieceType, WalkingSideType.RightSide, AttackType.Tile, BaseCharType.None), transform);

        piece.UMS.Pos = UMS.Pos;
        piece.UMS.EnableBattleBars(false);
        piece.UMS.CurrentTilePos = UMS.CurrentTilePos;
        piece.SetValueFromVariableName("BaseBoss", this);
        if (pieceType == CharacterNameType.Stage00_BossOctopus_Head)
        {
            ((Stage00_BossOctopus_Head)piece).bossParent = this;
        }
        else if (pieceType == CharacterNameType.Stage00_BossOctopus_Tentacles)
        {
            ((Stage00_BossOctopus_Tentacles)piece).bossParent = this;
        }
        else if (pieceType == CharacterNameType.Stage00_BossOctopus_Girl)
        {
            ((Stage00_BossOctopus_Girl)piece).bossParent = this;
        }
        return(piece);
    }
Esempio n. 2
0
        private IEnumerator StartBossDialog(MinionType_Script boss)
        {
            yield return(BlockTriggeredWithCallBack("BOSS ARRRIVED"));

            boss.SetValueFromVariableName("DialogueComplete", true);
        }