public override void OnEnable()
        {
            _pos = GetComponentInParent <DebugSpherePosition>();
            _rad = GetComponentInParent <DebugSphereRadius>();
            _col = GetComponentInParent <DebugSphereColor>();

            base.OnEnable();
        }
Пример #2
0
        public bool Equals(RadarBlip other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Color.Equals(other.Color) &&
                   Type.Equals(other.Type) &&
                   EntityHandle.Equals(other.EntityHandle) &&
                   RadarPosition.Equals(other.RadarPosition) &&
                   MarkerPosition.Equals(other.MarkerPosition) &&
                   Index.Equals(other.Index) &&
                   IsBright.Equals(other.IsBright) &&
                   IsInUse.Equals(other.IsInUse) &&
                   DebugSphereRadius.Equals(other.DebugSphereRadius) &&
                   Scale.Equals(other.Scale) &&
                   Display.Equals(other.Display) &&
                   Sprite.Equals(other.Sprite));
        }