public static bool IsUnlock(string playerId, BaseStage checkStage) { var unlockStages = GameDatabase.unlockStages; foreach (var unlockStage in unlockStages) { if (unlockStage.Id == checkStage.Id) { return(true); } } var stages = GameDatabase.Stages.Values; foreach (var stage in stages) { if (!DataMap.ContainsKey(GetId(playerId, stage.Id))) { continue; } unlockStages = new List <BaseStage>(stage.unlockStages); foreach (var unlockStage in unlockStages) { if (unlockStage.Id == checkStage.Id) { return(true); } } } return(false); }
public override void Start() { switch (currentStageNo) { case 1: currentStage = new Map1(); break; case 2: currentStage = new Map2(); break; case 3: currentStage = new Map3(); break; default: SceneManager.SetScene(new SceneGameOverAndHighscore()); break; } //Console.WriteLine("[GameScene] Loaded stage"); //초기화 new MenubarController(); new GameController(); new Player.Player(); //Console.WriteLine("[GameScore] Initialised two game controllers."); }
public static void StartTowerStage(BaseStage data, int level) { PlayingStage = data; //GameInstance.dbBattle.DoStartTowerStage(data.Id + "_" + level, (result) => //{ //BattleSession = result.session; RPGSceneManager.LoadScene(RPGSceneManager.BattleScene); //}); }
private void Start() { baseStage = BaseStage.Instance; choiceView.SetActive(false); weaponL.SetActive(false); weaponR.SetActive(false); gardL.SetActive(false); gardR.SetActive(false); }
public Parser(BaseStage baseStage, string script) { _script = script; _baseStage = baseStage; _methods.Add("NoteSetting", ParseNoteSetting); _methods.Add("SetPattern", ParseSetPattern); _methods.Add("Action", ParseAction); _methods.Add("SetStartDelay", ParseSetStartDelay); _methods.Add("SetBpm", ParseSetBpm); _methods.Add("SetStage", ParseSetStage); _methods.Add("Init", ParseInit); _methods.Add("Sheet", ParseSheet); _methods.Add("Beat", ParseBeat); }
private void Start() { baseStage = BaseStage.Instance; choiceView.SetActive(false); HeadList.SetActive(false); BodyList.SetActive(false); LArmList.SetActive(false); RArmList.SetActive(false); LegList.SetActive(false); HeadGard.SetActive(false); BodyGard.SetActive(false); LArmGard.SetActive(false); RArmGard.SetActive(false); LegGard.SetActive(false); }
private void Start() { baseStage = BaseStage.Instance; partsList = UnitPartsList.Instance; switch (commandType) { case CommandType.ChoicePartsHead: partsName.text = partsList.GetHeadObject(commandNumber).GetComponent <PartsHead>().GetName(); break; case CommandType.ChoicePartsBody: partsName.text = partsList.GetBodyObject(commandNumber).GetComponent <PartsBody>().GetName(); break; case CommandType.ChoicePartsLArm: partsName.text = partsList.GetLArmObject(commandNumber).GetComponent <PartsLArm>().GetName(); break; case CommandType.ChoicePartsRArm: partsName.text = partsList.GetRArmObject(commandNumber).GetComponent <PartsRArm>().GetName(); break; case CommandType.ChoicePartsLeg: partsName.text = partsList.GetLegObject(commandNumber).GetComponent <PartsLeg>().GetName(); break; case CommandType.ChoiceWeaponL: partsName.text = partsList.GetWeaponObject(commandNumber).GetComponent <Weapon>().GetName(); break; case CommandType.ChoiceWeaponR: partsName.text = partsList.GetWeaponObject(commandNumber).GetComponent <Weapon>().GetName(); break; default: break; } }
public static bool IsUnlock(BaseStage checkStage) { return(IsUnlock(IPlayer.CurrentPlayer.guid, checkStage)); }
private void Start() { baseStage = BaseStage.Instance; choiceView.SetActive(false); }
public StagePortal GetMirror(BaseStage nextStage) { return(nextStage.GetPortal(GetCurrentStageName())); }