Example #1
0
 public override void OnEnd()
 {
     if (ActiveController != null)
     {
         Debug.LogWarning("TODO save character after logout");
         ActiveCharacterMap.Remove(ActiveController);
         ActiveCharacterMap = null;
         GameObject.Destroy(ActiveController.gameObject);
         ActiveController = null;
         ActivePawn       = null;
     }
     Log("Ended");
 }
Example #2
0
    public override void BeginState(Game_Controller outer)
    {
        Game_PlayerPawn gpp = (Game_PlayerPawn)outer.Pawn;

        if (gpp != null)
        {
            if (/*!outer.IsServer() && */ gpp.Physics != gpp.mNetPhysics)
            {
                gpp.SetPhysics(gpp.mNetPhysics);
            }
        }
        base.BeginState(outer);
        (outer as Game_PlayerController).OnSitDown(true);
    }