コード例 #1
0
    void Awake()
    {
        GameObject displayTextControllerObject = GameObject.FindWithTag("DisplayTextController");
        GameObject playerControllerObject      = GameObject.FindWithTag("PlayerController");
        GameObject etteTextControllerObject    = GameObject.FindWithTag("EtteTextController");

        displayTextController = displayTextControllerObject.GetComponent <DisplayTextController>();
        playerController      = playerControllerObject.GetComponent <PlayerController>();
        etteTextController    = etteTextControllerObject.GetComponent <EtteTextController>();
    }
コード例 #2
0
ファイル: PlayerController.cs プロジェクト: aarongrisez/pal8
    void Awake()
    {
        Application.targetFrameRate = 30;
        locationManager             = GetComponent <LocationManager>();
        inventoryManager            = GetComponent <InventoryManager>();
        commandManager = GetComponent <CommandManager>();

        GameObject displayTextControllerObject = GameObject.FindWithTag("DisplayTextController");

        displayTextController = displayTextControllerObject.GetComponent <DisplayTextController>();

        Debug.Log("PlayerController mounted with ref to SceneController");
    }
コード例 #3
0
        public static void DebugDisplayTextControllerPart_MultiLine(IMyLog log, QuestionOption it)
        {
            string                res;
            StringBuilder         sb = new StringBuilder();
            StringBuilder         im = new StringBuilder();
            DisplayTextController c  = new DisplayTextController(false);

            c.AddLineAndUpdate3(new DetailedData_LastBadProcess(13, new TimeSpan(13)), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_LastBadProcess(13, new TimeSpan(13)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eFirstInit), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 0, 31), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 13, 0), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, true, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 113, 131), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, false, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 13, 31), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, true, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 13, 31), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, true, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.GetStatus().TheList.ForEach(e => e.ToIntermapperInfo(im));
            Debug.WriteLine("-----------------------------");
            Debug.WriteLine(im.ToString());
        }
コード例 #4
0
 public void InitialiseTextDisplay()
 {
     displayTextController = GameObject.Find("Canvas").GetComponent <DisplayTextController>();
 }
コード例 #5
0
 // Start is called before the first frame update
 public void Start()
 {
     displayTextController = GameObject.Find("Canvas").GetComponent <DisplayTextController>();
 }
コード例 #6
0
 public _2InfoDisplay_FromApp(ManualResetEvent stopRequest)
 {
     StopRequest    = stopRequest;
     textController = new DisplayTextController(true);
 }