Ejemplo n.º 1
0
 void Awake()
 {
     if(instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Ejemplo n.º 2
0
        public override void Init()
        {
            this.optObjMgr = Singleton <GameObjMgr> .GetInstance();

            this.optLobby = Singleton <LobbyLogic> .GetInstance();

            this.optBattle = Singleton <BattleLogic> .GetInstance();

            Singleton <GameInput> .GetInstance();

            this.optDropMgr = Singleton <DropItemMgr> .GetInstance();

            this.optRoleMgr = Singleton <CRoleInfoManager> .GetInstance();
        }