UnityEngine.Color.Equals C# (CSharp) Method

Equals() public method

public Equals ( object other ) : bool
other object
return bool
		public override bool Equals(object other)
		{
			Color c = (Color)other;
			return (c.r == r && c.g == g && c.b == b && c.a == a);
		}
	}

Usage Example

コード例 #1
0
 static int Equals(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Color obj  = (UnityEngine.Color)ToLua.ToObject(L, 1);
         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.Color::Equals