Example #1
0
 public CharacterBaseInfoClass(string name, CharacterSelectionType characterSelection,
                               List <ControllerType> playerController, CharacterNameType characterName,
                               WalkingSideType walkingSide, AttackType charAttackType, BaseCharType bCharType)
 {
     Name = name;
     CharacterSelection = characterSelection;
     PlayerController   = playerController;
     CharacterName      = characterName;
     WalkingSide        = walkingSide;
     CharAttackType     = charAttackType;
     BCharType          = bCharType;
 }
Example #2
0
    private BaseCharacter CreateChar(CharacterNameType characterID, BaseCharType bCharType = BaseCharType.None)
    {
        BaseCharacter res = BattleManagerScript.Instance.CreateChar(new CharacterBaseInfoClass(characterID.ToString(), CharacterSelectionType.Up,
                                                                                               new List <ControllerType> {
            ControllerType.Enemy
        }, characterID, WalkingSideType.RightSide, AttackType.Tile, bCharType), transform);

        if (characterID != CharacterNameType.Stage00_BossOctopus &&
            characterID != CharacterNameType.Stage00_BossOctopus_Head &&
            characterID != CharacterNameType.Stage00_BossOctopus_Tentacles &&
            characterID != CharacterNameType.Stage00_BossOctopus_Girl)
        {
            res.gameObject.SetActive(false);
        }
        WaveCharcters.Add(res);
        return(res);
    }