예제 #1
0
        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);
        }
예제 #2
0
 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;
         }
     }
 }
예제 #3
0
 public virtual void OnPlayerTick(SSPlayer player, float level)
 {
 }
예제 #4
0
 public override void OnPlayerTick(SSPlayer ply)
 {
 }
예제 #5
0
 public virtual void OnPlayerTick(SSPlayer ply)
 {
 }