Exemplo n.º 1
0
 public void RegisterForGame()
 {
     registeredPlayers.Remove(currentActiveRecipe);
     currentActiveRecipe = new PlayerCreationRecipe (name.text, isNPC.isOn, colorToggle.value, weapon.value, controlProfile.value);
     Debug.Log ("weapon value is " + weapon.value);
     registeredPlayers.Add (currentActiveRecipe);
     thisPanel.GetComponent<Image> ().color = Color.green;
     GameSetupHandler.CheckForGameStart ();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     currentActiveRecipe = new PlayerCreationRecipe ("NPC", true, Random.Range (0, 4), Random.Range(0,1), 0);
     //registeredPlayers.Add (currentActiveRecipe);
     activePlayerforms++;
 }