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