GameFramework.EntityController.GetGameObjectId C# (CSharp) Method

GetGameObjectId() private method

private GetGameObjectId ( UnityEngine obj ) : int
obj UnityEngine
return int
        internal int GetGameObjectId(UnityEngine.GameObject obj)
        {
            return EntityViewModelManager.Instance.GetGameObjectId(obj);
        }

Usage Example

示例#1
0
 static public int GetGameObjectId(IntPtr l)
 {
     try {
         GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
         UnityEngine.GameObject         a1;
         checkType(l, 2, out a1);
         var ret = self.GetGameObjectId(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }