Esempio n. 1
0
 public override void Update(Burstball burstball)
 {
     if (Physics.CheckSphere(burstball.transform.position, burstball.transform.lossyScale.x / 2, courtMask)) //TODO: ideally, burstballs should explode on contact with anything, but it was just immediately exploding. Perhaps it was colliding with itself?
     {
         burstball.GetComponent <Ball>().Blast(burstball.transform.position, blastRadius, blastMagnitude, blastLift);
     }
 }
Esempio n. 2
0
 public override void Enter(Burstball burstball)
 {
     blastRadius    = 10f;
     blastMagnitude = 10f;
     blastLift      = 0f;
     courtMask      = LayerMask.GetMask("Court");
 }
Esempio n. 3
0
 public abstract void Leave(Burstball burstball);
Esempio n. 4
0
 public abstract void Update(Burstball burstball);
Esempio n. 5
0
 public abstract void Enter(Burstball burstball);
 public override void Enter(Burstball burstball)
 {
 }
 public override void Leave(Burstball burstball)
 {
 }
 public override void Update(Burstball burstball)
 {
 }