public void Generate(StunCube source) { damage = source.damage; attackType = source.attackType; targetType = source.targetType; bulletPrefab = source.bulletPrefab; isTracing = source.isTracing; hitEffect = source.hitEffect; stunDuration = source.stunDuration; possibility = source.possibility; }
public void TakeStunDebuff(StunCube tc) { if (tc.possibility > UnityEngine.Random.value) { StunDebuff newStunDebuff = new StunDebuff { attackType = tc.attackType, duration = tc.stunDuration, timer = tc.stunDuration }; if (stunDebuff == null || newStunDebuff > stunDebuff) { stunDebuff = newStunDebuff; stunned = true; } } }