Esempio n. 1
0
        public static Prefab MakePrefabFrom(GameObject arg0)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.Prefab_MakePrefabFrom(GameObject.getCPtr(arg0));
            Prefab ret = (cPtr == global::System.IntPtr.Zero) ? null : new Prefab(cPtr, false);

            return(ret);
        }
Esempio n. 2
0
 public void LookAt(GameObject point)
 {
     SharpMochaPINVOKE.GameObject_LookAt__SWIG_1(swigCPtr, GameObject.getCPtr(point));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
        public GameObject GetAttachedObjFromWidgetObj(GameObject widgetObj)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.WidgetManager_GetAttachedObjFromWidgetObj(swigCPtr, GameObject.getCPtr(widgetObj));
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            return(ret);
        }
Esempio n. 4
0
 public void CreateInstance(GameObject gObj)
 {
     SharpMochaPINVOKE.Prefab_CreateInstance(swigCPtr, GameObject.getCPtr(gObj));
 }
Esempio n. 5
0
 public void ClampObjectToBounds(GameObject gobj)
 {
     SharpMochaPINVOKE.IZone_ClampObjectToBounds(swigCPtr, GameObject.getCPtr(gobj));
 }
Esempio n. 6
0
 public void Init(GameObject g)
 {
     SharpMochaPINVOKE.IZone_Init(swigCPtr, GameObject.getCPtr(g));
 }
Esempio n. 7
0
        public GameObject DragObject_DoRaycast(MochaVec4 CamPos, MochaVec4 Mouse, GameObject obj, float arg3)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.PhysicEngine_DragObject_DoRaycast(swigCPtr, MochaVec4.getCPtr(CamPos), MochaVec4.getCPtr(Mouse), GameObject.getCPtr(obj), arg3);
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public GameObject MakeNewGameObject(GameObject obj, bool addToState, BaseState state)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.ObjectFactory_MakeNewGameObject__SWIG_3(swigCPtr, GameObject.getCPtr(obj), addToState, BaseState.getCPtr(state));
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            return(ret);
        }