Example #1
0
    void SetupSingletons()
    {
        GameController gameCtrl = Singleton.GetInstance("GameController") as GameController;
        TimeMgr        timeMgr  = Singleton.GetInstance("TimeMgr") as TimeMgr;

        timeMgr.StartTimer();
        timeMgr.AddTimeEvent(TimeMgr.TimeEvent.NewTimeEvent("AA", gameCtrl.StartGame, 1));
    }
 public void Connect(string host, string port)
 {
     Client.Instance.Connect(host, port);
     if (client.isConnect)
     {
         timeMgr = new TimeMgr();
         timeMgr.StartTimer();
     }
 }
 public void Launch()
 {
     if (isLaunched)
     {
         return;
     }
     eventHandler = ClientBase.EventHandler.GetEventHandler();
     client       = Client.Instance;
     timeMgr      = new TimeMgr();
     timeMgr.StartTimer();
     InitClient();
     SendMsg("olleH! revreS");
     isLaunched = true;
 }