Ejemplo n.º 1
0
 private void CreateMinimap()
 {
     if (FengGameManagerMKII.lvlInfo != null)
     {
         Minimap minimap = base.gameObject.AddComponent <Minimap>();
         if (Minimap.instance.myCam == null)
         {
             Minimap.instance.myCam = new GameObject().AddComponent <Camera>();
             Minimap.instance.myCam.nearClipPlane = 0.3f;
             Minimap.instance.myCam.farClipPlane  = 1000f;
             Minimap.instance.myCam.enabled       = false;
         }
         minimap.CreateMinimap(Minimap.instance.myCam, 0x200, 0.3f, FengGameManagerMKII.lvlInfo.minimapPreset);
         if ((((int)FengGameManagerMKII.settings[0xe7]) == 0) || (RCSettings.globalDisableMinimap == 1))
         {
             minimap.SetEnabled(false);
         }
     }
 }
Ejemplo n.º 2
0
 private void CreateMinimap()
 {
     if (FengGameManagerMKII.Level != null)
     {
         Minimap minimap = base.gameObject.AddComponent <Minimap>();
         if (Minimap.Instance.myCam == null)
         {
             GameObject gameObject = new GameObject();
             Minimap.Instance.myCam = gameObject.AddComponent <Camera>();
             Minimap.Instance.myCam.nearClipPlane = 0.3f;
             Minimap.Instance.myCam.farClipPlane  = 1000f;
             Minimap.Instance.myCam.enabled       = false;
         }
         minimap.CreateMinimap(Minimap.Instance.myCam, 512, 0.3f, FengGameManagerMKII.Level.MinimapPreset);
         if ((int)FengGameManagerMKII.Settings[231] == 0 || RCSettings.GlobalDisableMinimap == 1)
         {
             minimap.SetEnabled(enabled: false);
         }
     }
 }