//Add a new marker of TYPE p_type on the MarkerList public void AddNewMarker(MinimapMarker p_marker, TYPE p_type) { if (!_markerList.Contains(p_marker)) { switch (p_type) { case TYPE.PLAYER: p_marker.SetSprite(playerSprite); p_marker.SetMarkerType(TYPE.PLAYER); break; case TYPE.ALLY: p_marker.SetSprite(allySprite); p_marker.SetMarkerType(TYPE.ALLY); break; case TYPE.ENEMY: p_marker.SetSprite(enemySprite); p_marker.SetMarkerType(TYPE.ENEMY); break; case TYPE.UNIQUE: p_marker.SetMarkerType(TYPE.UNIQUE); break; } _markerList.Add(p_marker); } }
//Manually sets the Marker Type public void SetType(TYPE p_type) { objectType = p_type; marker.SetMarkerType(p_type); }