void Awake() { if(instance == null) { instance = this; } else { Destroy(this); } }
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(); }