Example #1
0
 void Update()
 {
     map    = GameObject.Find("MiniMap");
     button = GameObject.Find("BottomButton");
     if (map != null && button != null)
     {
         miniMap = map.GetComponent <KGFMapSystem>();
         miniMap.SetMinimapSize(0f);
         button.transform.localScale = new Vector3(0, 0, 0);
         if (slider.value == 1)
         {
             isLoading = false;
             button.transform.localScale = new Vector3(1, 1, 1);
             miniMap.SetMinimapSize(0.25f);
         }
         else
         {
             isLoading = true;
         }
     }
 }
Example #2
0
 public override void OnEnter()
 {
     if (MapSystem == null)
     {
         MapSystem = KGFAccessor.GetObject <KGFMapSystem>();
     }
     if (MapSystem != null)
     {
         MapSystem.SetMinimapSize(Size.Value);
     }
     else
     {
         LogError("Could not find mapsystem object in scene");
     }
     Finish();
 }