// Use this for initialization void Start() { this.currentTime = 0f; this.score = 0; this.updateScore(this.score); this.updateTimer(); this.inGameSceneParameter = SceneMoveManager.Instance.CurrentSceneParameter as InGameSceneParameter; if (this.inGameSceneParameter == null) { var characterRepository = new CharacterRepository(); var questGroupRepository = new QuestGroupRepository(); var questRepository = new QuestRepository(); this.inGameSceneParameter = new InGameSceneParameter( characterRepository.Get(0), questGroupRepository.Get(0), questRepository.Get(1001001) ); } Instantiate(Resources.Load("InGame/Stage" + this.inGameSceneParameter.QuestGroup.ID)); GameObject player = (GameObject)Instantiate(Resources.Load("InGame/" + this.inGameSceneParameter.Character.iconPath)); player.GetComponent <PlayerController>().Init(this.inGameSceneParameter.Character.Type); SoundManager.Instance.PlayBgm("vigilante"); }
public bool IsOpen() { if (openClearQuestGroupID == OpenValue) { return(true); } var playerQuestRepository = new PlayerQuestRepository(); var questGroupRepository = new QuestGroupRepository(); foreach (var questID in questGroupRepository.Get(openClearQuestGroupID).questIDs) { if (!playerQuestRepository.Get(questID).IsClear()) { return(false); } } return(true); }