public void ResetState() { foreach (var effect in m_effects.ToArray()) { RemoveEffect(effect); } m_properties = new PlayerProperties(); StopChargingShot(); StopChargingPass(); DettachBall(); }
public Player(PlayerInfo playerInfo, Team team, String profilePath = "Game/Player.lua::PlayerDefault") { m_playerInfo = playerInfo; m_playerIndex = playerInfo.PlayerIndex; m_team = team; m_playerColors = new Color[] { Color.Silver, Color.Silver, Color.Silver, Color.Silver }; m_paramAsset = Engine.AssetManager.GetAsset <PlayerParameters>("Game/PlayerSolo.lua::Player"); m_paramAsset.OnAssetChanged += new OnChange(ResetParams); m_properties = new PlayerProperties(); }