public override void OnCreation(GameResult gameResult, IControlable host) { base.OnCreation(gameResult, host); CollidableBubble bubble = new CollidableBubble(1000, host, obstacles); gameResult.AddCollidableArea(bubble); }
public override void OnCreation(GameResult gameResult, IControlable host) { base.OnCreation(gameResult, host); this.shipHost = (IShip)host; float SensorRadius = 1000; IShipAIInfo shipAIInfo = shipHost.AIInfo; if (shipAIInfo != null) { SensorRadius = shipAIInfo.SensorRadius; } CollidableBubble bubble = new CollidableBubble(SensorRadius, host, obstacles); gameResult.AddCollidableArea(bubble); this.lifeTime = new LifeSpan(); }