public void CmdAddGold(int amount) { TeamController myTeamController = GameObject.FindGameObjectWithTag(GameController.GAME_CONTROLLER_TAG).GetComponent <GameController>().GetMyTeamController(id); myTeamController.AddGold(amount); }