protected override void OnUnregister()
        {
            base.OnUnregister();
            m_Quat.Clear();
            m_Quat = null;

            m_Rot.Clear();
            m_Rot = null;

            Log.Error("[ComponentLifeTest] OnUnregister");
        }
        protected override void OnRegister()
        {
            Log.Error("[ComponentLifeTest] OnRegister");
            m_Quat = Actor.FindQuatProperty("TestQuat");
            m_Rot  = Actor.FindRotatorProperty("TestRot");

            var testint    = Actor.FindIntProperty("TestInt");
            var TestString = Actor.FindStringProperty("TestString");
            var TestFloat  = Actor.FindFloatProperty("TestFloat");

            if (testint == null)
            {
                Log.Error("can not find property TestInt");
            }
            else
            {
                Log.Error(testint.Value.ToString());
            }

            if (TestString == null)
            {
                Log.Error("can not find property TestString");
            }
            else
            {
                Log.Error(TestString.Value.ToString());
            }

            if (TestFloat == null)
            {
                Log.Error("can not find property TestFloat");
            }
            else
            {
                Log.Error(TestFloat.Value.ToString());
            }
        }
Example #3
0
        protected override void OnRegister()
        {
            base.OnRegister();

            m_Rot = Actor.FindRotatorProperty("Rotate");
        }