Exemple #1
0
        private void Start()
        {
            iScreenWidth = Screen.width;
            iScreenHeigt = Screen.height;

            _RaceManager = base.GetComponent(typeof(Race_Manager)) as Race_Manager;
            RacerList    = _RaceManager.RegisteredRacers;
        }
Exemple #2
0
        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");
            }
        }
Exemple #3
0
 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 { }
 }
Exemple #4
0
 void Start()
 {
     RaceManagerComponent = base.GetComponent(typeof(Race_Manager)) as Race_Manager;
 }