Exemple #1
0
 public void AssignWorker(int stars, string colorStr, string workerName)
 {
     this.stars      = stars;
     this.colorStr   = colorStr;
     this.workerName = workerName;
     UpdateWorkerImageColorAlpha(ToColor(colorStr), 1.0f);
     workerAssigned = true;
     workstationBuilder.SaveEntitiesToPlayerPrefs();
     GameManager.instance.gameObject.GetComponent <TutorialMode>().WorkerAssigned();
 }
 public void StartBuilding()
 {
     if (!locked)
     {
         print("building line");
         PlayerPrefs.SetString("currentProductionJob", m_variable_name);
         PlayerPrefs.SetInt("ProductionRunning", 0);
         workstationBuilder.Build(m_display_name, GetWorkstationString());
         workstationBuilder.SaveEntitiesToPlayerPrefs();
     }
     // purchase action here
     //GameManager.instance.LossMoney(m_price * amount);
     //GameManager.instance.GainMaterial(m_variable_name, amount, m_display_name);
 }