예제 #1
0
    void InitBuffManager()
    {
        PlayerBuffManager playerBuffManager = GetComponent <PlayerBuffManager>();

        if (playerBuffManager)
        {
            playerBuffManager.Init(this);
            m_buffManager = playerBuffManager;
        }
    }
예제 #2
0
    private void Start()
    {
        if (controller)
        {
            controller.UpdateMaxSpeed(painMeter.MeterValue);
        }

        inventory.onItemUse += OnShardUse;
        abilityManager.onAbilityCastEvent += OnAbilityUse;

        _playerBuffManager.Init(this);

        isDead = false;
    }