Пример #1
0
    // Update is called once per frame
    void Update()
    {
        seDaggreBow = weaponControl.SeDaggreBow();
        delta      += Time.deltaTime;
        if (a && delta > span)
        {
            delta = 0;
            Damage();
            Debug.Log("a");
        }

        if (hp <= 0)
        {
            if (delta > span)
            {
                Destroy(gameObject);
            }
        }
    }