void Start() { costTask = 10; poolr = GameObject.Find("PoolReference").GetComponent <PoolR>(); //poolr.TaskCanvas.gameObject.SetActive(false); //PoolReference.TableScene[EnumInPool.TaskCanvas.ToString()].SetActive( false ); gameObject.SetActive(false); poolr.TaskNumber.enabled = false; if (!File.Exists(putTaskBase)) { TaskGenerator tg = new TaskGenerator(); tg.GenerationXML(); tg.BattleTaskGenerationXML(); } ReadXML(); loadNumTask = poolr.loadStats.numTask; if (numTask < loadNumTask) { numTask = loadNumTask; } poolr.BonusTextTask.text = poolr.coinText.text; VisibleTask(); //Debug.Log ("EndStart"); }
void Start() { costTask = 10; poolr = GameObject.Find("PoolReference").GetComponent<PoolR>(); //poolr.TaskCanvas.gameObject.SetActive(false); //PoolReference.TableScene[EnumInPool.TaskCanvas.ToString()].SetActive( false ); gameObject.SetActive( false ); poolr.TaskNumber.enabled = false; if (!File.Exists(putTaskBase)) { TaskGenerator tg = new TaskGenerator(); tg.GenerationXML(); tg.BattleTaskGenerationXML(); } ReadXML(); loadNumTask = poolr.loadStats.numTask; if (numTask < loadNumTask) numTask = loadNumTask; poolr.BonusTextTask.text = poolr.coinText.text; VisibleTask(); //Debug.Log ("EndStart"); }