Exemplo n.º 1
0
        //Resets Marker sprite to Default TYPE sprite
        public void ResetMarkerSprite(MinimapMarker p_marker)
        {
            switch (p_marker.GetMarkerType())
            {
            case TYPE.PLAYER:
                p_marker.SetSprite(playerSprite);
                break;

            case TYPE.ALLY:
                p_marker.SetSprite(allySprite);
                break;

            case TYPE.ENEMY:
                p_marker.SetSprite(enemySprite);
                break;
            }
            p_marker.SetFollow(true);
        }
Exemplo n.º 2
0
        //Set Death Sprite for marker
        public void MarkerDied(MinimapMarker p_marker)
        {
            switch (p_marker.GetMarkerType())
            {
            case TYPE.PLAYER:
                p_marker.SetSprite(playerDeathSprite);
                break;

            case TYPE.ALLY:
                p_marker.SetSprite(allyDeathSprite);
                break;

            case TYPE.ENEMY:
                p_marker.SetSprite(enemyDeathSprite);
                break;
            }
            p_marker.SetFollow(false);
        }