Exemplo n.º 1
0
 static public int get__LifeCycle(IntPtr l)
 {
     try {
         Core.CoreEntry self = (Core.CoreEntry)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self._LifeCycle);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 2
0
 static public int get_InitFinished(IntPtr l)
 {
     try {
         Core.CoreEntry self = (Core.CoreEntry)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.InitFinished);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
 static public int StartGame(IntPtr l)
 {
     try {
         Core.CoreEntry self = (Core.CoreEntry)checkSelf(l);
         System.String  a1;
         checkType(l, 2, out a1);
         var ret = self.StartGame(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
        void Awake()
        {
            Debug.Log("CoreEntry Awake");
            Instance     = this;
            _LifeCycle   = null;
            InitFinished = false;
            DontDestroyOnLoad(gameObject);
            Screen.sleepTimeout = (int)SleepTimeout.NeverSleep;

#if (UNITY_ANDROID || UNITY_IOS)
            Application.targetFrameRate = 30;
#else
            Application.targetFrameRate = 60;
#endif
        }