Exemple #1
0
        private static void SetFrom(this PooledMapIcon Pooled, MapIcon MapIcon)
        {
            if (MapIcon.Icon != null)
            {
                Pooled.rend.sprite = MapIcon.Icon;
            }

            Pooled.rend.color         = MapIcon.Color;
            Pooled.alphaPulse.enabled = MapIcon.Pulse;
            Pooled.rend.material.SetFloat(Globals.OUTLINE, MapIcon.Outline);

            var Temp = new Vector3(MapIcon.Position.x, MapIcon.Position.y);

            Temp  /= ShipStatus.Instance.MapScale;
            Temp.z = -1f;
            Pooled.transform.localPosition = Temp;
        }
Exemple #2
0
        public static MapIcon Add(MapIcon Icon)
        {
            Icons.Add(Icon);

            return(Icon);
        }