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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue