Ejemplo n.º 1
0
 public void LevelMenuShow(bool show)
 {
     AudioScript.instance.StopAllSoundes();
     if (characterMovementCoroutine != null)
     {
         StopCoroutine(characterMovementCoroutine);
     }
     gameMenuScript.UpdateLevelButtons(keyScript.GetKeyValue());
     gameMenuScript.HideLevelMenu(show);
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        keyScript         = gameObject.AddComponent <KeyScript>();
        tileManagerScript = gameObject.AddComponent <TileManagerScript>();
        mapManagerScript  = gameObject.AddComponent <MapManagerScript>();
        controllScript    = gameObject.AddComponent <ControllScript>();

        controllScript.enabled = false;
        keyScript.LoadKey();
        if (!mapManagerScript.IsDataFile("/mapki.dat"))
        {
            SaveMapsScript s = gameObject.AddComponent <SaveMapsScript>();
            mapManagerScript.LoadMaps(s.PrepareData());
        }
        else
        {
            mapManagerScript.LoadMaps("/mapki.dat");
        }

        buttonAction action = SetUpGame;

        gameMenuScript.SetUpLevelButtons(action);
        gameMenuScript.UpdateLevelButtons(keyScript.GetKeyValue());
    }