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; } }
void OnEnable() { minimapMaker = target as MinimapMaker; uiMinimap = new UIMinimap(); }