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:
Anton Tarasenko 2020-04-08 01:49:17 +07:00
commit 3969eb3824
7 changed files with 14 additions and 14 deletions

View file

@ -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;