protected override bool Init() { BattleTaskManager.GetPrefabFile().battleShutter.Init(BaseShutter.ShutterMode.Close); if (BattleTaskManager.GetBattleManager().IsPractice) { _async = Application.LoadLevelAsync(Generics.Scene.Strategy.ToString()); _async.allowSceneActivation = true; } else { _prodAdvancingWithDrawalDC = ProdAdvancingWithDrawalDC.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdAdvancingWithDrawalDC).GetComponent <ProdAdvancingWithDrawalDC>(), BattleTaskManager.GetBattleCameras().cutInCamera.transform, BattleTaskManager.GetRootType()); _prodAdvancingWithDrawalDC.Play(DecideAdvancinsWithDrawalBtn); } return(true); }
protected override bool UnInit() { _prodAdvancingWithDrawalDC = null; return(true); }