コード例 #1
0
        static int GameObjectMethodFindSystemString(int nameHandle)
        {
            var obj    = UnityEngine.GameObject.Find((System.String)ObjectStore.Get(nameHandle));
            int handle = ObjectStore.Store(obj);

            return(handle);
        }
コード例 #2
0
        static int StringNew(
            string chars)
        {
            int handle = ObjectStore.Store(chars);

            return(handle);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #6
0
        static int GameObjectConstructorSystemString(int nameHandle)
        {
            var obj = ObjectStore.Store(new UnityEngine.GameObject((System.String)ObjectStore.Get(nameHandle)));

            return(obj);
        }
コード例 #7
0
        static int GameObjectConstructor()
        {
            var obj = ObjectStore.Store(new UnityEngine.GameObject());

            return(obj);
        }
コード例 #8
0
        static int StopwatchConstructor()
        {
            var obj = ObjectStore.Store(new System.Diagnostics.Stopwatch());

            return(obj);
        }