void OnSceneGUI() { Handles.color = Color.red; GlowerProjectileAOE aoe = (GlowerProjectileAOE)target; Handles.DrawWireArc(aoe.transform.position, new Vector3(0, 0, 1), new Vector3(0, 1, 0), 360f, aoe.radius); Handles.DrawDottedLine(aoe.transform.position, aoe.transform.position + new Vector3(0, aoe.radius, 0), 12f); Handles.DrawDottedLine(aoe.transform.position, aoe.transform.position + new Vector3(aoe.radius, 0, 0), 12f); }
/// <summary> /// Billy Mays here with Kaboom /// Kills this object and spawns an explosion object /// </summary> protected void Explode() { //Create the AOE blast and let it know whether or not it's allied with the player GlowerProjectileAOE aoe = Instantiate(AOEexplosionObj).GetComponent <GlowerProjectileAOE>(); aoe.AlliedWithPlayer = alliedWithPlayer; aoe.transform.position = this.transform.position; SoundManager.PlaySound(SoundManager.SoundEffects.EnemyShadowGlowerExplosion, this.gameObject); Destroy(this.gameObject); }