public Wrapper() { m_input = null; m_stats = new Stats(); m_puppet = null; // Automated player name by counting current players m_nickname = "Random player " + (Manager.Player.Instance.Get().Count + 1); }
/// <summary> /// Set player's puppet. /// </summary> /// <param name="puppet">Puppet</param> public void SetPuppet(Puppet puppet) { m_puppet = puppet; }
/// <summary> /// Callback for being called when clicked a puppet button. Stores a puppet /// object with an identifier at current player's wrapper. /// </summary> /// <param name="puppetIdentifier">Puppet identifier</param> public void OnClickPuppetButton(int puppetIdentifier) { // Create puppet Player.Puppet puppet = new Player.Puppet(puppetIdentifier); // Add puppet to current player GetCurrentPlayerObject().SetPuppet(puppet); CharacterPhase.SetActive(false); InputPhase.SetActive(true); }