|
virtual void | Start () |
| On start we initialize our remaining deaths counter More...
|
|
virtual void | UpdateTexts () |
| Updates the bound texts if necessary More...
|
|
virtual void | OnEnable () |
| OnDisable, we start listening to events. More...
|
|
virtual void | OnDisable () |
| OnDisable, we stop listening to events. More...
|
|
virtual void | Awake () |
| On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake. More...
|
|
virtual void | InitializeSingleton () |
| Initializes the singleton. More...
|
|
◆ Modes
◆ ComputeKillThresholdBasedOnTargetLayerMask()
virtual void MoreMountains.CorgiEngine.KillsManager.ComputeKillThresholdBasedOnTargetLayerMask |
( |
| ) |
|
|
virtual |
Computes the required death threshold based by counting objects on the selected layer mask
◆ InitializeStatics()
static void MoreMountains.CorgiEngine.KillsManager.InitializeStatics |
( |
| ) |
|
|
staticprotected |
Statics initialization to support enter play modes
◆ OnDisable()
virtual void MoreMountains.CorgiEngine.KillsManager.OnDisable |
( |
| ) |
|
|
protectedvirtual |
OnDisable, we stop listening to events.
◆ OnEnable()
virtual void MoreMountains.CorgiEngine.KillsManager.OnEnable |
( |
| ) |
|
|
protectedvirtual |
OnDisable, we start listening to events.
◆ OnMMEvent()
virtual void MoreMountains.CorgiEngine.KillsManager.OnMMEvent |
( |
MMLifeCycleEvent |
lifeCycleEvent | ) |
|
|
virtual |
When we get a death even
- Parameters
-
◆ RefreshRemainingDeaths()
virtual void MoreMountains.CorgiEngine.KillsManager.RefreshRemainingDeaths |
( |
| ) |
|
|
virtual |
Use this method to change the current death threshold. This will also update the remaining death counter
- Parameters
-
◆ Start()
virtual void MoreMountains.CorgiEngine.KillsManager.Start |
( |
| ) |
|
|
protectedvirtual |
On start we initialize our remaining deaths counter
◆ UpdateTexts()
virtual void MoreMountains.CorgiEngine.KillsManager.UpdateTexts |
( |
| ) |
|
|
protectedvirtual |
Updates the bound texts if necessary
◆ AutoSetKillThreshold
bool MoreMountains.CorgiEngine.KillsManager.AutoSetKillThreshold = true |
in Layer mode, if AutoSetKillThreshold is true, the KillThreshold will be automatically computed on start, based on the total number of potential targets in the level matching the target layer mask
◆ DeathThreshold
int MoreMountains.CorgiEngine.KillsManager.DeathThreshold = 5 |
The maximum amount of kills needed to trigger OnLastDeath.
◆ Mode
◆ OnDeath
UnityEvent MoreMountains.CorgiEngine.KillsManager.OnDeath |
An event that gets triggered on every death.
◆ OnLastDeath
UnityEvent MoreMountains.CorgiEngine.KillsManager.OnLastDeath |
An event that gets triggered when the last death occurs.
◆ RemainingCounter
Text MoreMountains.CorgiEngine.KillsManager.RemainingCounter |
An optional text counter displaying the remaining amount of deaths before OnLastDeath.
◆ RemainingDeaths
int MoreMountains.CorgiEngine.KillsManager.RemainingDeaths = 0 |
The amount of deaths remaining to trigger OnLastDeath. Read only value.
◆ TargetLayerMask
the layer(s) on which the dying Health components should be to be counted - typically Enemies
◆ TargetsList
List<Health> MoreMountains.CorgiEngine.KillsManager.TargetsList |
a list of Health components on the targets. Once all these targets are dead, OnLastDeath will trigger
◆ TotalCounter
Text MoreMountains.CorgiEngine.KillsManager.TotalCounter |
An optional text counter displaying the total amount of deaths required before OnLastDeath triggers.
The documentation for this class was generated from the following file: