private void Update()
    {
        Debug.Log("********** ********** Update Begin ********** **********");

        //Adds example of same prefix messages
        MPac_Test singlePackage1 = new MPac_Test("Update Test Message A", "Test_MessageA");

        m_noticeBoard.AddMessage(MessageFormat.Rapid, "Test_MessageA", singlePackage1);

        MPac_Test singlePackage2 = new MPac_Test("Update Test Message B", "Test_MessageB");

        m_noticeBoard.AddMessage(MessageFormat.Rapid, "Test_MessageB", singlePackage2);
    }
    private void Update()
    {
        Debug.Log("********** ********** Update Begin ********** **********");

        //Adds pre-remove message
        MPac_Test removePackage = new MPac_Test("RemoveTest Subscription will be Removed!", "Debug_Remove");

        m_noticeBoard.AddMessage(MessageFormat.Rapid, "RemoveTest", removePackage);
    }
Exemplo n.º 3
0
    private void Update()
    {
        Debug.Log("********** ********** Update Begin ********** **********");

        //Local bypass examples
        MPac_Test localPackageRapid = new MPac_Test("Delay Bypass Local Message", "LocalRapidBypass");

        m_noticeBoard.AddMessage(MessageFormat.RapidBypass, "LocalRapidBypass", localPackageRapid);

        MPac_Test localPackageDelay = new MPac_Test("Delay Bypass Local Message", "LocalDelayBypass");

        m_noticeBoard.AddMessage(MessageFormat.DelayedBypass, "LocalDelayBypass", localPackageDelay);

        //Global bypass examples
        MPac_Test gloablPackageRapid = new MPac_Test("Rapid Bypass Global Message", MessageHeader.TS_PackageTestA.ToString());

        GlobalNoticeBoard.s_instance.AddMessage(MessageFormat.RapidBypass, MessageHeader.TS_PackageTestA, gloablPackageRapid);

        MPac_Test gloablPackageDelay = new MPac_Test("Delay Bypass Global Message", MessageHeader.TS_PackageTestB.ToString());

        GlobalNoticeBoard.s_instance.AddMessage(MessageFormat.DelayedBypass, MessageHeader.TS_PackageTestB, gloablPackageDelay);
    }
    private void Update()
    {
        Debug.Log("********** ********** Update Begin ********** **********");

        //Adds message to delay buffer, to trigger in next LateUpdate
        MPac_Test soloDelayPackage = new MPac_Test("Update Delay Solo Message", "SoloTest");

        m_noticeBoard.AddMessage(MessageFormat.Delayed, "SoloTest", soloDelayPackage);

        //Adds message to trigger immediately
        MPac_Test endlessPackage = new MPac_Test("Update Endless Message", "EndlessTest");

        m_noticeBoard.AddMessage(MessageFormat.Rapid, "EndlessTest", endlessPackage);

        MPac_Test singlePackage = new MPac_Test("Update Single Message", "SingleTest");

        m_noticeBoard.AddMessage(MessageFormat.Rapid, "SingleTest", singlePackage);

        MPac_Test soloPackage = new MPac_Test("Update Solo Message", "SoloTest");

        m_noticeBoard.AddMessage(MessageFormat.Rapid, "SoloTest", soloPackage);
    }