コード例 #1
0
    void TryShoot()
    {
        if (!CheckConditions())
        {
            return;
        }

        OnAttackStared.Invoke();
        Shoot();
        OnShoot.Invoke();
    }
コード例 #2
0
    protected override void RequestStartAttackInternal()
    {
        base.RequestStartAttackInternal();

        OnAttackStared.Invoke();

        isAttacking = true;
        gameObject.SetActive(true);

        Invoke(STOP_ATTACK, attackTime);
    }