void Start() { logger = new QuestGame.Logger(); logger.info("GameManager.cs :: Initializing Game..."); gameUsers = new Users(textBoxInput, 0); totalUsers = gameUsers.getNumberOfUsers(); logger.info("GameManager.cs :: Calling AdventureDeck..."); advDeck.populateDeck(); logger.info("GameManager.cs :: Calling StoryDeck..."); storyDeck.populateDeck(); passed = new bool[4] { false, false, false, false }; //// storyDeck.populateEventsDeck (); // PickUpAdventureCards (0, 12); // PickUpAdventureCards (1, 15); // PickUpAdventureCards (2, 12); // PickUpAdventureCards (3, 12); for (int i = 0; i < textBoxInput; i++) { PickUpAdventureCards(i, 12); } logger.info("GameManager.cs :: Game has been created with " + totalUsers + " players."); togglePlayerCanvas(playerTurn); }
void Start() { QuestStage = Resources.Load("PreFabs/QuestStage") as GameObject; SubmitButton = Resources.Load("PreFabs/SubmitButton") as GameObject; logger = new QuestGame.Logger(); // stageDisplay = Resources.Load ("PreFabs/StageDisplay") as GameObject; //bool banana = true; //Instantiate (QuestStage); //spawnStages (3, GameObject.Find ("Player").gameObject); }
void Start() { gameUsers = new Users(textBoxInput, 0); totalUsers = gameUsers.getNumberOfUsers(); advDeck.populateDeck(); //storyDeck.populateDeck (); passed = new bool[4] { false, false, false, false }; logger = new QuestGame.Logger(); logger.info("GameManager.cs :: Game has been created with " + totalUsers + " players."); logger.info("GameManager.cs :: Adventure advDeck has been created. with sizes of " + advDeck.getSizeOfDeck()); logger.info("GameManager.cs :: Story storyDeck has been created. with sizes of " + storyDeck.getSizeOfDeck()); logger.info("GameManager.cs :: Game has been created with " + totalUsers + " players."); logger.info("GameManager.cs :: Adventure advDeck has been created. with sizes of " + advDeck.getSizeOfDeck()); logger.info("GameManager.cs :: Story storyDeck has been created. with sizes of " + storyDeck.getSizeOfDeck()); PickUpAdventureCard(0, "Saxons"); PickUpAdventureCard(0, "Boar"); PickUpAdventureCard(0, "Dagger"); PickUpAdventureCard(0, "Sword"); PickUpAdventureCard(1, "Sword"); PickUpAdventureCard(2, "Horse"); PickUpAdventureCard(2, "Excalibur"); PickUpAdventureCard(2, "Amour"); PickUpAdventureCard(3, "Battle-ax"); PickUpAdventureCard(3, "Lance"); PickUpAdventureCard(3, "Thieves"); PickUpAdventureCards(0, 8); PickUpAdventureCards(1, 11); PickUpAdventureCards(2, 9); PickUpAdventureCards(3, 9); togglePlayerCanvas(playerTurn); }
// protected Sprite KnightOfTheRoundTable = (Resources.Load("sprites/") as Sprite); //public GameObject user_rank_ui; //public GameObject hand; //canvas for their hand /*public User(string user_name){ * this.user_name = user_name; * this.shields = 0; * this.baseAttack = 5; * this.rank = RANK_NAME [0]; * }*/ public void Initialize(string user_name, bool ai) { logger = new QuestGame.Logger(); this.user_name = user_name; this.shields = 0; this.baseAttack = 5; this.rank = RANK_NAME [0]; this.ai = ai; this.hand_ally = new List <AdventureCard> (); Squire = (Resources.Load <Sprite>("sprites/Squire") as Sprite); Knight = (Resources.Load <Sprite>("sprites/Knight") as Sprite); ChampionKnight = (Resources.Load <Sprite>("sprites/Champion Knight") as Sprite); this.gameObject.transform.GetChild(3).GetComponent <Text>().text = ("Player: " + this.user_name); this.gameObject.transform.GetChild(4).GetComponent <Text>().text = ("Rank: " + this.rank); this.gameObject.transform.GetChild(5).GetComponent <Text>().text = ("Shields: " + this.shields); this.gameObject.transform.GetChild(6).GetComponent <Text>().text = ("BattlePoints: " + this.baseAttack); this.gameObject.transform.GetChild(1).GetComponent <Image> ().sprite = Squire; logger.info("User.cs :: Initializing Player... " + this.user_name); }
// Use this for initialization void Start() { logger = new QuestGame.Logger(); }