void Awake() { inst = this; mm = MapManager.GetInst(); pm = PlayerManager.GetInst(); gm = GUIManager.GetInst(); fm = FIleManager.Getinst(); bm = BattleCardManager.GetInst(); }
public void CreateTestMap(string MapPath) { MapInfo info = FIleManager.Getinst().LoadMap(MapPath); if (info == null) { } if (info.bonInfos == null) { } CreateXMLmap(info); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // test new test MainForm form = new MainForm(); MessageService service = new MessageService(); FIleManager manager = new FIleManager(); MainPresenter presenter = new MainPresenter(form, manager, service); Application.Run(form); }
public void LoadCard() { card = new CardBase[MapSizeX + 1][]; for (int x = 0; x <= MapSizeX; x++) { card[x] = new CardBase[MapSizeY + 1]; for (int y = 0; y <= MapSizeY; y++) { float X = x * HexW; float Y = y * HexH; Vector3 v = new Vector3(X, 0, Y); card[x][y] = ((GameObject)Instantiate(GO_hex)).GetComponent <CardBase>(); card[x][y].transform.position = v; Vector3 r = new Vector3(90, 0, 0); card[x][y].transform.rotation = Quaternion.Euler(r); card[x][y].Buttonnum = x; card[x][y].InGame = false; } } cardUse = new CardUseBase[MapSizeX + 1][]; for (int x = 0; x <= MapSizeX; x++) { cardUse[x] = new CardUseBase[MapSizeY + 1]; for (int y = 0; y <= MapSizeY; y++) { cardUse[x][y] = (MagicCard)GameObject.Instantiate(Cards[0]).GetComponent <MagicCard>(); float X = x * HexW; float Y = y * HexH; Vector3 v = new Vector3(X, 0.3f, Y); cardUse[x][y].transform.position = v; Vector3 r = new Vector3(90, 0, 0); cardUse[x][y].transform.rotation = Quaternion.Euler(r); cardUse[x][y].Buttonnum = x; cardUse[x][y].InGame = false; cardUse[x][y].X = x; cardUse[x][y].Y = y; card[x][y].SetCost(cardUse[x][y].cost); } } FIleManager.Getinst().SaveCardData(); }
void Start() { if (GUIManager.GetInst().tutorial == true) { font_list = FIleManager.Getinst().LoadTextData(path); } if (GUIManager.GetInst().talkmode) { font_list = FIleManager.Getinst().LoadTextData(GUIManager.GetInst().fontPath); } //LoadTextFile("text/data.txt"); text = GetComponent <TextMesh>(); if (GUIManager.GetInst().tutorial == true) { text.text = font_list.bonInfos[1].text; } maintext = maintext; }
// Use this for initialization IEnumerator Start() { // テストデータの文字列 string test_data_str = string.Empty; // TestData読み込み(ロード) yield return(FIleManager.ReadFileText(r => test_data_str = r, "/Data/TestData.txt")); // 読み込んだテストデータの文字列を表示 Debug.Log(test_data_str); // TestData書き込み(セーブ) FIleManager.WriteText("/Data", "/TestData.txt", "テストデータに書き込みました!"); // 書き込んだTestDataを読み込み(ロード) yield return(FIleManager.ReadFileText(r => test_data_str = r, "/Data/TestData.txt")); // 読み込んだテストデータの文字列を表示 Debug.Log(test_data_str); }
void Awake() { inst = this; }
void Awake() { inst = this; FIleManager.Getinst().LoadStageData(path); }
void Start() { //LoadCard(); CreateXMLmap(FIleManager.Getinst().LoadCardData(path)); }