Esempio n. 1
0
    public void Release()
    {
        Time.timeScale = 1f;
        this.Bullet.Release();
        this.PlayerBullet.Release();
        this.Effect.Release();
        this.Form.Release();
        this.GoodsCreate.Release();
        if (this._Path != null)
        {
            this._Path.DeInit();
        }
        this.Game.Release();
        this.EntityCache.Release();
        this.Entity.DeInit();
        this.Mode.DeInit();
        this.MapEffect.Release();
        LocalModelManager.Instance.Drop_Drop.ClearGoldDrop();
        CInstance <TipsManager> .Instance.Clear();

        Updater.GetUpdater().OnRelease();
        Updater.UpdaterDeinit();
        Goods1151.DoorData.DeInit();
        Object.DestroyImmediate(GameNode.m_Battle);
        GameNode.MapCacheNode.DestroyChildren();
        GameLogic.Hold.Sound.DeInit();
        if (this._MapCreator != null)
        {
            this._MapCreator.Deinit();
        }
        if (this._Entity != null)
        {
            Object.DestroyImmediate(this._Entity.gameObject);
            this._Entity = null;
        }
        TimerBase <Timer> .Unregister();

        TimeClock.Clear();
        GameNode.m_HP.DestroyChildren();
        this._Game         = null;
        this._Bullet       = null;
        this._PlayerBullet = null;
        this._Effect       = null;
        this._MapEffect    = null;
        this._EntityCache  = null;
        this._MapCreator   = null;
        this._Path         = null;
        this._GoodsCreate  = null;
        this._Mode         = null;
        this._Form         = null;
        Goods1151.DoorData = null;
        GC.Collect();
    }
Esempio n. 2
0
        public static void Main()
        {
            GameFormManager gameUI = new GameFormManager();

            gameUI.InitiateGameForm();
        }