Ejemplo n.º 1
0
 public void LateUpdate()
 {
     if (GameEnvironment.Instance.Platform == GamePlatform.iOS)
     {
         appdomain.Invoke(i_lateUpdateMethod, null, p0);
     }
     else
     {
         m_lateUpdateMethod.Invoke(null, null);
     }
 }
Ejemplo n.º 2
0
 public void HotFixAwake()
 {
     if (GameEnvironment.Instance.Platform == GamePlatform.iOS)
     {
         appdomain.Invoke(MainClassName, "Main", null, null);
     }
     else
     {
         m_mainMethod.Invoke(null, null);
     }
 }
Ejemplo 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;
        }
Ejemplo 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;
        }
Ejemplo n.º 5
0
 public override void FixedUpdate()
 {
     lateUpdateMethod.Invoke(null, null);
 }
Ejemplo n.º 6
0
 public override void Awake()
 {
     mainMethod.Invoke(null, null);
 }