Ejemplo n.º 1
0
 public DesktopUserInterface(GameMain gameMain)
 {
     this.gameMain = gameMain;
 }
Ejemplo n.º 2
0
        void Start()
        {
            s_singleton = this;
            new SingletonMgr();

            //DontDestroyOnLoad(gameObject);

            //Application.targetFrameRate = 60;

            Screen.sleepTimeout = SleepTimeout.NeverSleep;

            SingletonMgr.singleton.AddSingleton(new ResLoadMgr());

            SingletonMgr.singleton.AddSingleton(new ResourceMgr());

            //SingletonMgr.singleton.AddSingleton(new SceneMgr());

            SingletonMgr.singleton.AddSingleton(new TableMgr());

            SingletonMgr.singleton.AddSingleton(new UI.UIMgr());

            SingletonMgr.singleton.AddSingleton(new PlayerDataMgr());

            SingletonMgr.singleton.AddSingleton(new LanguageMgr());

            //SingletonMgr.singleton.AddSingleton(new GameGoodsMgr());

            SingletonMgr.singleton.AddSingleton(new CampTaskMgr());

            //SingletonMgr.singleton.AddSingleton(new WantedTaskMgr());

            SingletonMgr.singleton.AddSingleton(new TipsMgr());

            //SingletonMgr.singleton.AddSingleton(new GuideMgr());

            //SingletonMgr.singleton.AddSingleton(new StatsMgr());

            //SingletonMgr.singleton.AddSingleton(new AdsMgr());

            SingletonMgr.singleton.AddSingleton(new InternetMgr());

            SingletonMgr.singleton.AddSingleton(new DateTimeMgr());


            //SingletonMgr.singleton.AddSingleton(new PlayerRightsMgr());


            //SingletonMgr.singleton.AddSingleton(new FileListMgr());

            //SingletonMgr.singleton.AddSingleton(new ServerMgr());

            //SingletonMgr.singleton.AddSingleton(new PurchaseMgr());

            //SingletonMgr.singleton.AddSingleton(new ShowBufferMgr());

            SingletonMgr.singleton.AddSingleton(new CampsiteMgr());

            SingletonMgr.singleton.AddSingleton(new DialogueMgr());

            Init();
        }
Ejemplo n.º 3
0
 private void Awake()
 {
     GameMain.CreateSingleton();
 }
Ejemplo n.º 4
0
 public void ClearSingleton()
 {
     s_singleton = null;
 }