예제 #1
0
    public void Target_UCE_MinimapSceneText(NetworkConnection target, string name)
    {
        if (string.IsNullOrWhiteSpace(name))
        {
            return;
        }

        if (minimap == null)
        {
            minimap = FindObjectOfType <UIMinimap>();
        }

        if (minimap != null && minimap.sceneText != null)
        {
            minimap.sceneText.text = name;
        }
    }
예제 #2
0
 void OnEnable()
 {
     minimapMaker = target as MinimapMaker;
     uiMinimap    = new UIMinimap();
 }