Class SetupDemoEnemy
Sets up enemy using demo components.
Currently using this component to setup enemy entity.
TODO: Revise enemy instantiation and entity assignment.
Inheritance
SetupDemoEnemy
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(EnemyMotor))]
public class SetupDemoEnemy : MonoBehaviour
Fields
|
Improve this Doc
View Source
AlliedToPlayer
Declaration
public bool AlliedToPlayer
Field Value
|
Improve this Doc
View Source
ClassicSpawnDistanceType
Declaration
public byte ClassicSpawnDistanceType
Field Value
|
Improve this Doc
View Source
EnemyGender
Declaration
public MobileGender EnemyGender
Field Value
|
Improve this Doc
View Source
EnemyReaction
Declaration
public MobileReactions EnemyReaction
Field Value
|
Improve this Doc
View Source
EnemyType
Declaration
public MobileTypes EnemyType
Field Value
|
Improve this Doc
View Source
LightAura
Declaration
public GameObject LightAura
Field Value
Methods
|
Improve this Doc
View Source
AlignToGround()
Declaration
public void AlignToGround()
|
Improve this Doc
View Source
ApplyEnemySettings(EntityTypes, Int32, MobileGender, Boolean, Boolean)
Change enemy settings and configure in a single call.
Declaration
public void ApplyEnemySettings(EntityTypes entityType, int careerIndex, MobileGender gender, bool isHostile = true, bool alliedToPlayer = false)
Parameters
|
Improve this Doc
View Source
ApplyEnemySettings(MobileGender)
Sets up enemy based on current settings.
Declaration
public void ApplyEnemySettings(MobileGender gender)
Parameters
|
Improve this Doc
View Source
ApplyEnemySettings(MobileTypes, MobileReactions, MobileGender, Byte, Boolean)
Change enemy settings and configure in a single call.
Declaration
public void ApplyEnemySettings(MobileTypes enemyType, MobileReactions enemyReaction, MobileGender gender, byte classicSpawnDistanceType = 0, bool alliedToPlayer = false)
Parameters
|
Improve this Doc
View Source
GetMobileBillboardChild()
Finds mobile billboard or custom implementation in children.
Declaration
public MobileUnit GetMobileBillboardChild()
Returns
Type |
Description |
MobileUnit |
Mobile Unit component.
|
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)