protected override IEnumerator Load() { // ロード待機用 var waitForCount = new WaitForCount(); System.Action pre = waitForCount.inc; System.Action done = waitForCount.dec; // ロード var rm = ResourceSystem.Instance; rm.Load <GameObject>("VS.BackGround.prefab", pre, done, (res) => { this.backGroundPrefab = res; }); PawEffectManager.Load(pre, done); SkillManager.Load(pre, done); ParticleManager.Load(pre, done); EffectManager.Load(pre, done); VersusManager.Load(pre, done); // ロード待機 yield return(waitForCount); // ロード完了 this.isLoaded = true; this.state.SetState(State.Setup); }
protected override void OnMyDestory() { var rm = ResourceSystem.Instance; rm.Unload("VS.BackGround.prefab"); PawEffectManager.Unload(); SkillManager.Unload(); ParticleManager.Unload(); EffectManager.Unload(); VersusManager.Unload(); }