예제 #1
0
    private IEnumerator AddTempOnAttackEffect(int itemID,
                                              PlayerWeapon.OnAttackEffect effect, float effectLength)
    {
        AddOnAttackEffect(itemID, effect);
        yield return(new WaitForSeconds(effectLength));

        SubtractOnAttackEffect(itemID);
    }
예제 #2
0
 public void AddOnAttackEffectForXSec(int itemID,
                                      PlayerWeapon.OnAttackEffect effect, float effectLength)
 {
     StartCoroutine(AddTempOnAttackEffect(itemID, effect, effectLength));
 }
예제 #3
0
 public void AddOnAttackEffect(int itemID, PlayerWeapon.OnAttackEffect effect)
 {
     m_Weapon.AddItemEffect(itemID, effect);
 }