コード例 #1
0
ファイル: DropItemMgr.cs プロジェクト: FairyHamaLab/Desertion
 void Awake()
 {
     if(instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
コード例 #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();
        }