Ejemplo n.º 1
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.F3))
        {
            ToggleSound();
        }

        if (!variation.Equals(_currentVariation))
        {
            TransitionTo(variation);
            _currentVariation = variation;
        }
    }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (typeof(Key) != obj.GetType())
            {
                return(false);
            }

            var other = (Key)obj;

            if (FrameType != other.FrameType)
            {
                return(false);
            }

            if (!Name?.Equals(other.Name) ?? (other.Name != null))
            {
                return(false);
            }

            if (!TypeLine?.Equals(other.TypeLine) ?? (other.TypeLine != null))
            {
                return(false);
            }

            if (!Variation?.Equals(other.Variation) ?? (other.Variation != null))
            {
                return(false);
            }

            if (!Links?.Equals(other.Links) ?? (other.Links != null))
            {
                return(false);
            }

            if (!GemLevel?.Equals(other.GemLevel) ?? (other.GemLevel != null))
            {
                return(false);
            }

            if (!GemQuality?.Equals(other.GemQuality) ?? (other.GemQuality != null))
            {
                return(false);
            }

            if (!MapTier?.Equals(other.MapTier) ?? (other.MapTier != null))
            {
                return(false);
            }

            if (!GemCorrupted?.Equals(other.GemCorrupted) ?? (other.GemCorrupted != null))
            {
                return(false);
            }

            return(true);
        }