RotationTweenProperty.Equals C# (CSharp) Метод

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool
    public override bool Equals( object obj )
    {
        // start with a base check and then compare if we are both using local values
        if( base.Equals( obj ) )
            return this._useLocalRotation == ((RotationTweenProperty)obj)._useLocalRotation;

        // if we get here, we need to see if the other object is a eulerAngles tween of the same kind
        var otherAsEuler = obj as EulerAnglesTweenProperty;
        if( otherAsEuler != null )
            return this._useLocalRotation == otherAsEuler.useLocalEulers;

        return false;
    }