Inheritance: Component
    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));
    }
 static public int constructor(IntPtr l)
 {
     UnityEngine.OffMeshLink o;
     o = new UnityEngine.OffMeshLink();
     pushObject(l, o);
     return(1);
 }
    private void Awake()
    {
        var companion = GameObject.FindWithTag("Companion");

        _companionScript = companion.GetComponent<CompanionScript>();
        _meshLink = GetComponent<OffMeshLink>();
    }
 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;
 }
Esempio n. 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);
 }
Esempio n. 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);
    }
Esempio n. 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);
    }
Esempio n. 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);
    }
Esempio n. 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);
    }
Esempio n. 10
0
	// 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> ();
	}
Esempio n. 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);
    }
        private void _getOffMeshLink()
        {
            GameObject go = Fsm.GetOwnerDefaultTarget(gameObject);
            if (go == null)
            {
                return;
            }

            _offMeshLink =  go.GetComponent<OffMeshLink>();
        }
 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));
     }
 }
	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);
		}
	}
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
 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));
     }
 }
 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));
     }
 }
Esempio n. 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);
     }
 }
 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;
     }
 }
Esempio n. 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);
 }
 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));
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
     }
 }
 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));
     }
 }
Esempio n. 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);
     }
 }
 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));
     }
 }
 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));
     }
 }
 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));
     }
 }
 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;
     }
 }
 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;
     }
 }
 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;
     }
 }
 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;
     }
 }
Esempio n. 36
0
 static public int get_biDirectional(IntPtr l)
 {
     UnityEngine.OffMeshLink o = (UnityEngine.OffMeshLink)checkSelf(l);
     pushValue(l, o.biDirectional);
     return(1);
 }
Esempio n. 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;
    }