Beispiel #1
0
    private void Start()
    {
        mLiquidBarHandler = BF_GameManager.instance.HEALTH_LIQUIDBAR;

        // set the info.
        mLiquidBarHandler.AttachInfo(mLiveObject.HPInfo);

        mLiveObject.IsPlayer = true;
    }
Beispiel #2
0
    private bool CheckAbleToShoot()
    {
        if (BF_GameManager.instance.GAME_IS_OVER)
        {
            return(false);
        }

        BF_LiquidBarHandler bfmh = BF_GameManager.instance.MANA_LIQUIDBAR;

        // if is enough mana, will shoot.
        return(bfmh.IsAbleToCastCast(JCS_Mathf.ToNegative(mManaCastPerShoot)));
    }