/// <summary> /// Constructor for Handle. /// </summary> /// <param name="name">Name of object.</param> /// <param name="position">Position to place object.</param> /// <param name="textureName">Name of texture to load.</param> /// <param name="parent">The parent object of the handle.</param> public Handle(string name, Vector2 position, string textureName, SimulationObject parent) : base(name, position, textureName) { Parent = parent; Selectable = true; Movable = true; }
/// <summary> /// Triggers the detector with an object. /// </summary> /// <param name="object">Object detected.</param> public void OnObjectEntered(SimulationObject @object) { Triggered?.Invoke(this, new EventArgs()); }