Class CharacterGroup
Contains the possible characters that can spawn in a cell, being used by ScriptableBattlePosition Inspector for easy stage customization.
Inheritance
System.Object
CharacterGroup
Namespace: AutoBattleFramework.BattleBehaviour
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class CharacterGroup
Constructors
CharacterGroup()
Declaration
public CharacterGroup()
Fields
characterGroup
List of possible characters that can appear in a cell. One will be selected at random.
Declaration
public List<ShopCharacter> characterGroup
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<ShopCharacter> |
Methods
GetGroupTexture()
Returns the image of the first character in the group. It is used in the ScriptableBattlePosition inspector in order to differentiate groups.
Declaration
public Texture GetGroupTexture()
Returns
| Type | Description |
|---|---|
| Texture |
GetRandomCharacter()
Returns a random character from characterGroup. It will be used to spawn it and give enemy variety to the different phases.
Declaration
public ShopCharacter GetRandomCharacter()
Returns
| Type | Description |
|---|---|
| ShopCharacter |