GameFramework.EntityController.IsMovableEntity C# (CSharp) Method

IsMovableEntity() private method

private IsMovableEntity ( UnityEngine obj ) : bool
obj UnityEngine
return bool
        internal bool IsMovableEntity(UnityEngine.GameObject obj)
        {
            bool ret = true;
            int type = GetEntityType(obj);
            if (type == (int)EntityTypeEnum.Tower) {
                ret = false;
            }
            return ret;
        }

Same methods

EntityController::IsMovableEntity ( int objId ) : bool

Usage Example

コード例 #1
0
 static public int IsMovableEntity(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.GameObject)))
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             UnityEngine.GameObject         a1;
             checkType(l, 2, out a1);
             var ret = self.IsMovableEntity(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int)))
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             var ret = self.IsMovableEntity(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }