Пример #1
0
 void Update()
 {
     if (!reg)
     {
         reg = SatTruck.RegisterHotkey(unitNum, this);
     }
     else
     {
         enabled = false;
     }
 }
Пример #2
0
 void Start()
 {
     reg = SatTruck.RegisterHotkey(unitNum, this);
     img = GetComponent <Image> ();
 }