Example #1
0
 void Awake()
 {
     instance    = this;
     textMesh    = text.GetComponent <TextMesh>();
     textForTake = "";
     for (int i = 0; i < board.transform.childCount; i++)
     {
         textForTake = textForTake + board.transform.GetChild(i).GetChild(0).GetComponent <Text>().text;
     }
     rt       = board.GetComponent <RectTransform>();
     isStart  = false;
     isFinish = false;
     isShow   = false;
     idinstr  = 0;
     Application.DontDestroyOnLoad(this);
     gameObject.SetActive(false);
 }
 void Awake()
 {
     instance = this;
     textMesh = text.GetComponent<TextMesh>();
     textForTake = "";
     for (int i = 0; i < board.transform.childCount; i++)
     {
         textForTake = textForTake + board.transform.GetChild(i).GetChild(0).GetComponent<Text>().text;
     }
     rt = board.GetComponent<RectTransform>();
     isStart = false;
     isFinish = false;
     isShow = false;
     idinstr = 0;
     Application.DontDestroyOnLoad(this);
     gameObject.SetActive(false);
 }