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); }
void Start() { producer = GetComponent <ResourceProducer>(); if (producer != null) { producer.SetTokenLayer(TokenDisplayer.TokenLayer.UI); } }