/// <summary> /// Enable components and subtract money when a player is respawned /// </summary> private void Respawn() { enableComponents(); gameObject.GetComponent <CircleCollider2D>().enabled = false; Debug.Log("Attempt to subtract money: teamid: " + gameObject.GetComponent <Player>().GetTeamId()); moneyM.SubtractMoney(gameObject.GetComponent <Player>().GetTeamId()); }
/// <summary> /// Enable components and subtract money when a player is respawned /// </summary> public void Respawn() { enableComponents(); gameObject.GetComponent <CircleCollider2D>().enabled = false; moneyM.SubtractMoney(gameObject.GetComponent <Player>().GetTeamId()); }