Exemplo n.º 1
0
 void Update()
 {
     if (!reg)
     {
         reg = SatTruck.RegisterHotkey(unitNum, this);
     }
     else
     {
         enabled = false;
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     reg = SatTruck.RegisterHotkey(unitNum, this);
     img = GetComponent <Image> ();
 }