public CampaignHandler(PersistData p, BoardWarSpecial b1, BoardWarCampaign b2, BoardMirrorSpecial m, BoardCursorWar c1, BoardCursorBot c2, CampaignHUD h, XmlNode top) { PD = p; hud = h; mirror2 = m; board1 = b1; board2 = b2; cursor1 = c1; cursor2 = c2; inCampaignShop = false; playerDied = false; navDetails = top; }
private BoardCursorWar GetUserCursor(int p, float o, int w, int h, TweenHandler th, bool forceShow = true) { GameObject g = GetGameObject(Vector3.zero, "", null, false, "HUDText"); BoardCursorWar c = g.AddComponent <BoardCursorWar>(); c.SetPD(PD); c.xOffset = o; c.player = p; c.setWidthAndHeight(w, h); c.Setup(th, h, forceShow); if (p == 1 && usingTouchControls) { c.usingTouchControls = true; } return(c); }