// Start is called before the first frame update void Start() { Party party = new Party(); party.cook = new Assets.Scripts.RobinsonCrusoe_Game.Characters.Cook(); new RoundSystem(new Castaways()); PartyHandler.CreateParty(party, 1); SceneManager.LoadScene("GameScene"); }
public void TaskOnClick() { if (canStart) { PartyHandler.CreateParty(TempoarySettings.Party, TempoarySettings.NumberOfPlayers); new RoundSystem(new Castaways()); //TODO: add level selection DifficultyHandler.Value = difficulty.GetComponent <Dropdown>().value; //Analytics var param = new Dictionary <string, object>(); int index = 0; foreach (var character in PartyHandler.PartySession) { param.Add(character.CharacterName, index); index++; } Analytics.CustomEvent("Party", param); SceneManager.LoadScene("GameScene"); } }