public DualPortal AddNextDualPortal() { //WriteLine("Orange View: " + PortalADir.RadiansToDegrees()); //WriteLine("Blue View: " + PortalBDir.RadiansToDegrees()); #region create a dual portal var PortalA = new PortalInfo { Color = 0xFF6A00, }.AddTo(Portals); EgoView.Sprites.Add(PortalA.Sprite); var PortalB = new PortalInfo { Color = 0xff00, }.AddTo(Portals); EgoView.Sprites.Add(PortalB.Sprite); #endregion var n = new DualPortal { Orange = PortalA, Blue = PortalB }; DualPortals.Add(n); return(n); }
public DualPortal AddNextDualPortal() { //WriteLine("Orange View: " + PortalADir.RadiansToDegrees()); //WriteLine("Blue View: " + PortalBDir.RadiansToDegrees()); #region create a dual portal var PortalA = new PortalInfo { Color = 0xFF6A00, }.AddTo(Portals); EgoView.Sprites.Add(PortalA.Sprite); var PortalB = new PortalInfo { Color = 0xff00, }.AddTo(Portals); EgoView.Sprites.Add(PortalB.Sprite); #endregion var n = new DualPortal { Orange = PortalA, Blue = PortalB }; DualPortals.Add(n); return n; }