Inheritance: Component
コード例 #1
0
    static void OffMeshLink_occupied(JSVCall vc)
    {
        UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
        var result = _this.occupied;

        JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
    }
コード例 #2
0
 static public int constructor(IntPtr l)
 {
     UnityEngine.OffMeshLink o;
     o = new UnityEngine.OffMeshLink();
     pushObject(l, o);
     return(1);
 }
コード例 #3
0
    private void Awake()
    {
        var companion = GameObject.FindWithTag("Companion");

        _companionScript = companion.GetComponent<CompanionScript>();
        _meshLink = GetComponent<OffMeshLink>();
    }
コード例 #4
0
 private void generateOffmesh(ref OffMeshLink offMesh, colliderDetector Side, int startPos, int endPos)
 {
     offMesh = gameObject.transform.GetChild(startPos).gameObject.AddComponent<OffMeshLink>();
     offMesh.autoUpdatePositions = true;
     offMesh.biDirectional = true;
     offMesh.startTransform = gameObject.transform.GetChild(startPos).gameObject.transform;
     offMesh.endTransform = Side.collidedObject.transform.GetChild(0).gameObject.transform.GetChild(endPos).transform;
 }
コード例 #5
0
 static public int set_endTransform(IntPtr l)
 {
     UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
     UnityEngine.Transform   v;
     checkType(l, 2, out v);
     o.endTransform = v;
     return(0);
 }
コード例 #6
0
    static public int set_biDirectional(IntPtr l)
    {
        UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
        bool v;

        checkType(l, 2, out v);
        o.biDirectional = v;
        return(0);
    }
コード例 #7
0
    static public int set_costOverride(IntPtr l)
    {
        UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
        float v;

        checkType(l, 2, out v);
        o.costOverride = v;
        return(0);
    }
コード例 #8
0
    static public int set_autoUpdatePositions(IntPtr l)
    {
        UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
        bool v;

        checkType(l, 2, out v);
        o.autoUpdatePositions = v;
        return(0);
    }
コード例 #9
0
    static public int set_activated(IntPtr l)
    {
        UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
        bool v;

        checkType(l, 2, out v);
        o.activated = v;
        return(0);
    }
コード例 #10
0
ファイル: Door.cs プロジェクト: JeffreyByJeffrey/Ghost
	// Use this for initialization
	void Start () {
		timing = false;
		timer = 0;
		anim = GetComponent<Animation> ();
		open = true;
		anim.Play("new_opening");
		//anim.SetBool ("Open", true);
		link = GetComponentInChildren<OffMeshLink> ();
	}
コード例 #11
0
    static public int set_navMeshLayer(IntPtr l)
    {
        UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
        int v;

        checkType(l, 2, out v);
        o.navMeshLayer = v;
        return(0);
    }
コード例 #12
0
        private void _getOffMeshLink()
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);
            if (go == null)
            {
                return;
            }

            _offMeshLink =  go.GetComponent<OffMeshLink>();
        }
コード例 #13
0
 static public int get_costOverride(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.costOverride);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #14
0
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.OffMeshLink o;
			o=new UnityEngine.OffMeshLink();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
コード例 #15
0
 static public int get_autoUpdatePositions(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         pushValue(l, self.autoUpdatePositions);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #16
0
 static public int get_costOverride(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         pushValue(l, self.costOverride);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #17
0
 static public int UpdatePositions(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         self.UpdatePositions();
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #18
0
 static public int get_startTransform(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.startTransform);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #19
0
 static public int UpdatePositions(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         self.UpdatePositions();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #20
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink o;
         o = new UnityEngine.OffMeshLink();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #21
0
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink o;
         o=new UnityEngine.OffMeshLink();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
コード例 #22
0
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.OffMeshLink o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.OffMeshLink();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
コード例 #23
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink o;
         o = new UnityEngine.OffMeshLink();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #24
0
 static public int set_costOverride(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.costOverride = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #25
0
 static public int set_activated(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.activated = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #26
0
 static public int set_endTransform(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         UnityEngine.Transform   v;
         checkType(l, 2, out v);
         self.endTransform = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #27
0
 static public int set_navMeshLayer(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self.navMeshLayer = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #28
0
 static public int set_navMeshLayer(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self.navMeshLayer = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
コード例 #29
0
 static public int set_costOverride(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.costOverride = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #30
0
 static public int set_activated(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.activated = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #31
0
 static public int set_endTransform(IntPtr l)
 {
     try {
         UnityEngine.OffMeshLink self = (UnityEngine.OffMeshLink)checkSelf(l);
         UnityEngine.Transform   v;
         checkType(l, 2, out v);
         self.endTransform = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #32
0
 static void OffMeshLink_biDirectional(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         var result = _this.biDirectional;
         JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result));
     }
     else
     {
         System.Boolean          arg0  = (System.Boolean)JSApi.getBooleanS((int)JSApi.GetType.Arg);
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         _this.biDirectional = arg0;
     }
 }
コード例 #33
0
 static void OffMeshLink_endTransform(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         var result = _this.endTransform;
         JSMgr.datax.setObject((int)JSApi.SetType.Rval, result);
     }
     else
     {
         UnityEngine.Transform   arg0  = (UnityEngine.Transform)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         _this.endTransform = arg0;
     }
 }
コード例 #34
0
 static void OffMeshLink_costOverride(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         var result = _this.costOverride;
         JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
     }
     else
     {
         System.Single           arg0  = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         _this.costOverride = arg0;
     }
 }
コード例 #35
0
 static void OffMeshLink_navMeshLayer(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         var result = _this.navMeshLayer;
         JSApi.setInt32((int)JSApi.SetType.Rval, (System.Int32)(result));
     }
     else
     {
         System.Int32            arg0  = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
         UnityEngine.OffMeshLink _this = (UnityEngine.OffMeshLink)vc.csObj;
         _this.navMeshLayer = arg0;
     }
 }
コード例 #36
0
 static public int get_biDirectional(IntPtr l)
 {
     UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
     pushValue(l, o.biDirectional);
     return(1);
 }
コード例 #37
0
    static int _CreateOffMeshLink(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            OffMeshLink obj = new OffMeshLink();
            LuaScriptMgr.Push(L, obj);
            return 1;
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: OffMeshLink.New");
        }

        return 0;
    }