Esempio n. 1
0
 public void LateUpdate()
 {
     if (GameEnvironment.Instance.Platform == GamePlatform.iOS)
     {
         appdomain.Invoke(i_lateUpdateMethod, null, p0);
     }
     else
     {
         m_lateUpdateMethod.Invoke(null, null);
     }
 }
Esempio n. 2
0
 public void HotFixAwake()
 {
     if (GameEnvironment.Instance.Platform == GamePlatform.iOS)
     {
         appdomain.Invoke(MainClassName, "Main", null, null);
     }
     else
     {
         m_mainMethod.Invoke(null, null);
     }
 }
Esempio n. 3
0
        public override void Destroy()
        {
            if (destroyMethod != null)
            {
                destroyMethod.Invoke(null, null);
            }

            assembly          = null;
            mainMethod        = null;
            updateMethod      = null;
            fixedUpdateMethod = null;
            lateUpdateMethod  = null;
            destroyMethod     = null;
        }
Esempio n. 4
0
        public void DestroyManager()
        {
            IsActiveMonoMethod = false;

            if (codeStream != null)
            {
                codeStream.Close();
                codeStream = null;
            }

            if (appdomain != null)
            {
                appdomain.Invoke(MainClassName, "Destroy", null, null);
                appdomain = null;
            }

            if (assembly != null)
            {
                m_DestroyMethod.Invoke(null, null);
                assembly = null;
            }

            p0 = null;

            i_updateMethod      = null;
            i_fixedUpdateMethod = null;
            i_lateUpdateMethod  = null;

            m_mainMethod        = null;
            m_updateMethod      = null;
            m_fixedUpdateMethod = null;
            m_lateUpdateMethod  = null;
            m_DestroyMethod     = null;

            Instance = null;
        }
Esempio n. 5
0
 public override void FixedUpdate()
 {
     lateUpdateMethod.Invoke(null, null);
 }
Esempio n. 6
0
 public override void Awake()
 {
     mainMethod.Invoke(null, null);
 }