public override void OnStartClient() { if (hasAuthority) { playerAtThisComputer = ClientInstance.ReturnClientInstance(); uim = FindObjectOfType <UIManager>(); rs = uim.GetRadarScreen(playerAtThisComputer); } }
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 }); }
// 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>(); }
public void SetMatrix(EntityCoordinates? coordinates, Angle? angle) { RadarScreen.SetMatrix(coordinates, angle); }
public void UpdateState(RadarConsoleBoundInterfaceState scc) { RadarScreen.UpdateState(scc); }