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; }
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); }