private void Start() { iScreenWidth = Screen.width; iScreenHeigt = Screen.height; _RaceManager = base.GetComponent(typeof(Race_Manager)) as Race_Manager; RacerList = _RaceManager.RegisteredRacers; }
void Start() { iScreenWidth = Screen.width; iScreenHeigt = Screen.height; _RaceManager = base.GetComponent(typeof(Race_Manager)) as Race_Manager; RacerList = _RaceManager.RegisteredRacers; GameObject MinimapHelperObject = GameObject.Find("_MiniMapHelper"); if (MinimapHelperObject == null) { Debug.LogWarning("RST KIT WARNING : Minimap Helper Object not dropped into hierarchy or its disabled! Please consult documentation! "); } else { OffsetPoint1 = MinimapHelperObject.transform.FindChild("_miniMap_OffsetPoint1"); OffsetPoint2 = MinimapHelperObject.transform.FindChild("_miniMap_OffsetPoint2"); } }
private void Awake() { if (!this.enabled) { return; } try { GameObject RaceManagerObject = GameObject.Find("_RaceManager"); if (RaceManagerObject != null) { RaceManager = RaceManagerObject.GetComponent(typeof(Race_Manager)) as Race_Manager; } if (gameObject.tag == "Player") { IsPlayer = true; } } catch { } }
void Start() { RaceManagerComponent = base.GetComponent(typeof(Race_Manager)) as Race_Manager; }