Esempio n. 1
0
 public override void OnCreate()
 {
     base.OnCreate();
     if (Ins == null)
     {
         Ins           = Util.CreateGlobalObj <SoundManager>("SoundManager");
         AudioListener = Ins.gameObject.AddComponent <AudioListener>();
     }
 }
Esempio n. 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;
     }
 }
Esempio n. 3
0
 public override void OnCreate()
 {
     base.OnCreate();
     Util.CreateGlobalObj <DLCManager>("DLCAssetMgr");
 }