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

@ -44,7 +44,7 @@ struct DualiesPair
// It's made configurable in case of custom dual weapons.
var private config const array<DualiesPair> dualiesClasses;
public function OnEnabled()
protected function OnEnabled()
{
local float actualInterval;
actualInterval = checkInterval;
@ -55,7 +55,7 @@ public function OnEnabled()
SetTimer(actualInterval, true);
}
public function OnDisabled()
protected function OnDisabled()
{
SetTimer(0.0f, false);
}