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); } }
public override void Enter(Burstball burstball) { blastRadius = 10f; blastMagnitude = 10f; blastLift = 0f; courtMask = LayerMask.GetMask("Court"); }
public abstract void Leave(Burstball burstball);
public abstract void Update(Burstball burstball);
public abstract void Enter(Burstball burstball);
public override void Enter(Burstball burstball) { }
public override void Leave(Burstball burstball) { }
public override void Update(Burstball burstball) { }