UnityEngine.SceneManagement.Scene.Equals C# (CSharp) Method

Equals() public method

public Equals ( object other ) : bool
other object
return bool
        public override bool Equals(object other)
        {
            if (!(other is Scene))
            {
                return false;
            }
            Scene scene = (Scene) other;
            return (this.handle == scene.handle);
        }

Usage Example

コード例 #1
0
 static int Equals(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.SceneManagement.Scene obj = (UnityEngine.SceneManagement.Scene)ToLua.CheckObject(L, 1, typeof(UnityEngine.SceneManagement.Scene));
         object arg0 = ToLua.ToVarObject(L, 2);
         bool   o    = obj.Equals(arg0);
         LuaDLL.lua_pushboolean(L, o);
         ToLua.SetBack(L, 1, obj);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
All Usage Examples Of UnityEngine.SceneManagement.Scene::Equals