Exemplo n.º 1
0
        static int GameObjectMethodFindSystemString(int nameHandle)
        {
            var obj    = UnityEngine.GameObject.Find((System.String)ObjectStore.Get(nameHandle));
            int handle = ObjectStore.Store(obj);

            return(handle);
        }
Exemplo n.º 2
0
        static int StringNew(
            string chars)
        {
            int handle = ObjectStore.Store(chars);

            return(handle);
        }
Exemplo n.º 3
0
        static int ComponentPropertyGetTransform(int thisHandle)
        {
            var thiz   = (UnityEngine.Component)ObjectStore.Get(thisHandle);
            var obj    = thiz.transform;
            int handle = ObjectStore.Store(obj);

            return(handle);
        }
Exemplo n.º 4
0
        static int GameObjectMethodAddComponentMyGameMonoBehavioursTestScript(int thisHandle)
        {
            var thiz   = (UnityEngine.GameObject)ObjectStore.Get(thisHandle);
            var obj    = thiz.AddComponent <MyGame.MonoBehaviours.TestScript>();
            int handle = ObjectStore.Store(obj);

            return(handle);
        }
Exemplo n.º 5
0
        static int ObjectPropertyGetName(int thisHandle)
        {
            var thiz   = (UnityEngine.Object)ObjectStore.Get(thisHandle);
            var obj    = thiz.name;
            int handle = ObjectStore.Store(obj);

            return(handle);
        }
Exemplo n.º 6
0
        static int GameObjectConstructorSystemString(int nameHandle)
        {
            var obj = ObjectStore.Store(new UnityEngine.GameObject((System.String)ObjectStore.Get(nameHandle)));

            return(obj);
        }
Exemplo n.º 7
0
        static int GameObjectConstructor()
        {
            var obj = ObjectStore.Store(new UnityEngine.GameObject());

            return(obj);
        }
Exemplo n.º 8
0
        static int StopwatchConstructor()
        {
            var obj = ObjectStore.Store(new System.Diagnostics.Stopwatch());

            return(obj);
        }