public override void HandlePickRay(SceneMouseEventInfo e) { if (e.Rank == 0 && e.Button.HasFlag(MouseButtons.Left) && Vector3.Distance(character.Position, position) < 3 && keyInventory.Keys.Contains(color)) { keyInventory.Keys.Remove(color); sceneRoot.RemoveElement(this); } }
public override void HandlePickRay(SceneMouseEventInfo e) { if (e.Type == MouseEventType.Down && e.Button == MouseButtons.Left && e.Rank == 0) { Console.WriteLine("BOX! " + e.Rank); toggle = !toggle; } }