protected override void OnInit() { this.DrawColor = new Color(20, 20, 20); this.UseCameraInput = false; GameMap = new SSMap(this); LocalPlayer = new SSPlayer(GameMap); Container.Add(GameMap); Container.Add(LocalPlayer); }
public override void OnPlayerTick(SSPlayer player, float level) { if (player.OxygenLevel < 1.0f) { player.OxygenLevel += level; if (player.OxygenLevel > 1.0f) { player.OxygenLevel = 1.0f; } } }
public virtual void OnPlayerTick(SSPlayer player, float level) { }
public override void OnPlayerTick(SSPlayer ply) { }
public virtual void OnPlayerTick(SSPlayer ply) { }