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); }
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; }
void Awake() { inst = this; FIleManager.Getinst().LoadStageData(path); }
void Start() { //LoadCard(); CreateXMLmap(FIleManager.Getinst().LoadCardData(path)); }