Ejemplo n.º 1
0
 void Start()
 {
     _carcounter  = GetComponent <CarCounter> ();
     _eventsystem = GetComponent <EventSystem> ();
     _synccolor   = GetComponent <SyncColor> ();
     _synccolor.sync();
 }
 void Start()
 {
     _synccolor.sync();
     if (PlayerPrefs.GetInt("carequipped", 1) == 1)
     {
         Destroy(car2.gameObject);
     }
     else if (PlayerPrefs.GetInt("carequipped", 1) == 2)
     {
         Destroy(car1.gameObject);
     }
     Destroy(_synccolor);
     Destroy(_destroycar);
 }