Exemplo n.º 1
0
 public void CloneScriptableObject(CreateStageData cloneStageData)
 {
     gimmicID       = cloneStageData.gimmicID;
     gimmicRotate   = cloneStageData.gimmicRotate;
     totalCost      = cloneStageData.totalCost;
     stageName      = cloneStageData.stageName;
     stageDetails   = cloneStageData.stageDetails;
     isEdit         = cloneStageData.isEdit;
     offlineStageID = cloneStageData.GetOfflineStageID();
 }
Exemplo n.º 2
0
 private void MissionListOpen()
 {
     foreach (GameObject spawn in spawnStageContents)
     {
         Destroy(spawn);
     }
     for (int i = stageData.stageList.Length - 1; i >= 0; i--)
     {
         //ミッションが受注可能か調べる
         Debug.Log(i);
         if (stageData.stageList[i].GetStageRunk > save.missionProgress)
         {
             continue;   //ランクが足りない場合、次のステージ
         }
         GameObject m_contentObj = Instantiate(content, contentParent);
         spawnStageContents.Add(m_contentObj);
         m_contentObj.GetComponent <StageContent>().StageTextSet(stageData.stageList[i].GetNodeName, stageData.stageList[i].GetNodeDetails);
         //ラムダ式でないと引数付きイベントが設定できないので
         CreateStageData m_stagedata = stageData.stageList[i].GetStageData;
         m_contentObj.GetComponent <Button>().onClick.AddListener(() => { this.MissionButton(m_stagedata); });
     }
 }
Exemplo n.º 3
0
 public void StageReset()
 {
     data = defaultdata;
     StartCoroutine(StageLoad());
 }
Exemplo n.º 4
0
 public void MissionButton(CreateStageData selectstage)
 {
     selectStageData = selectstage;
     StartCoroutine(UIMove(false));
 }