Refactor Feature
Make events functions `OnEnabled()` and `OnEnabled()` protected rather than public. Move initialization and clean up logic into `OnCreated()` and `OnDestroyed()` event functions.
This commit is contained in:
parent
dd0bdc8904
commit
3969eb3824
7 changed files with 14 additions and 14 deletions
|
|
@ -89,7 +89,7 @@ var private array<DoshStreamPerPlayer> currentContributors;
|
|||
// Wads of cash that are lying around on the map.
|
||||
var private array<CashPickup> wads;
|
||||
|
||||
public function OnEnabled()
|
||||
protected function OnEnabled()
|
||||
{
|
||||
local CashPickup nextCash;
|
||||
// Find all wads of cash laying around on the map,
|
||||
|
|
@ -100,7 +100,7 @@ public function OnEnabled()
|
|||
}
|
||||
}
|
||||
|
||||
public function OnDisabled()
|
||||
protected function OnDisabled()
|
||||
{
|
||||
wads.length = 0;
|
||||
currentContributors.length = 0;
|
||||
|
|
|
|||
Reference in a new issue