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

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