Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
         }
     }
 }