コード例 #1
0
        void PrintToUI()
        {
            ScaleText scaler = GameObject.FindGameObjectWithTag("TextContent").GetComponent <ScaleText>();

            foreach (var line in lines)
            {
                scaler.SetText(line);
            }
        }
コード例 #2
0
        public void PrintToUI(string newLine)
        {
            ScaleText scaler = GameObject.FindGameObjectWithTag("TextContent").GetComponent <ScaleText>();

            scaler.SetText(newLine + "\n");
        }
コード例 #3
0
 public void PrintInt(dynamic val)
 {
     inputPanel.SetActive(true);
     outputText.text = Convert.ToString(val);
     consoleText.SetText(Convert.ToString(val) + "\n");
 }