示例#1
0
 public void SelectWorker(bool enabled)
 {
     selected    = enabled;
     col.enabled = !enabled; // Turn off collider so raycasts don't hit it
     GameManager.instance.PlaceUnitOnCursor(this);
     producer.SetTokenLayer(TokenDisplayer.TokenLayer.UI);
 }
示例#2
0
 void Start()
 {
     producer = GetComponent <ResourceProducer>();
     if (producer != null)
     {
         producer.SetTokenLayer(TokenDisplayer.TokenLayer.UI);
     }
 }