public SpawnException2D(MonoBehaviour context, Spawner2D spawner, Vector2 centre, float width, float height) { this.context = context; this.centre = centre; this.spawner = spawner; CheckException(width, height); isActive = true; }
public SpawnException2D(MonoBehaviour context, Spawner2D spawner, Vector2 centre, float width, float height, float duration, bool startNow) { this.context = context; this.centre = centre; this.spawner = spawner; this.duration = duration; CheckException(width, height); if (startNow) { StartException(); } }