Example #1
0
 public override void OnStartClient()
 {
     if (hasAuthority)
     {
         playerAtThisComputer = ClientInstance.ReturnClientInstance();
         uim = FindObjectOfType <UIManager>();
         rs  = uim.GetRadarScreen(playerAtThisComputer);
     }
 }
Example #2
0
        public MainScreen()
        {
            _world = new World();
            _world.CreateWorld();

            _player = new Player(new Point(50, 50));

            _radarScreen = new RadarScreen(_world);


            InitializeComponent();
            typeof(Panel).InvokeMember("DoubleBuffered",
                                       BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
                                       null, RadarPanel, new object[] { true });
        }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     //Currently there is only 1 screen. Multiple screen requires call to GetComponentsInChildren. OK in this case English wins. The plural form is more concise
     m_radarScreen = GetComponentInChildren <RadarScreen>();
 }
Example #4
0
 public void SetMatrix(EntityCoordinates? coordinates, Angle? angle)
 {
     RadarScreen.SetMatrix(coordinates, angle);
 }
Example #5
0
 public void UpdateState(RadarConsoleBoundInterfaceState scc)
 {
     RadarScreen.UpdateState(scc);
 }