void InitBuffManager() { PlayerBuffManager playerBuffManager = GetComponent <PlayerBuffManager>(); if (playerBuffManager) { playerBuffManager.Init(this); m_buffManager = playerBuffManager; } }
private void Start() { if (controller) { controller.UpdateMaxSpeed(painMeter.MeterValue); } inventory.onItemUse += OnShardUse; abilityManager.onAbilityCastEvent += OnAbilityUse; _playerBuffManager.Init(this); isDead = false; }