예제 #1
0
 public override void OnCreate()
 {
     base.OnCreate();
     if (Ins == null)
     {
         Ins           = Util.CreateGlobalObj <SoundManager>("SoundManager");
         AudioListener = Ins.gameObject.AddComponent <AudioListener>();
     }
 }
예제 #2
0
 protected override void OnAllLoadEnd1()
 {
     LoadSelectItems(ref SelectCharasItems);
     //创建一个临时的Player对象
     if (TempPlayer == null)
     {
         TempPlayer = Util.CreateGlobalObj <TUnit>("TempLocalPlayer");
     }
     //设置默认的Player
     if (Player == null)
     {
         Player          = TempPlayer as TUnit;
         BaseLocalPlayer = Player;
     }
 }
예제 #3
0
 public override void OnCreate()
 {
     base.OnCreate();
     Util.CreateGlobalObj <DLCManager>("DLCAssetMgr");
 }