Exemplo n.º 1
0
    void NextStageStart()
    {
        CurrentStage = NextStage;
        targetHits[CurrentStage.StageNum].Initialize(CurrentStage.InitializeTarget());
        StageStart();

        FireBase.Instance.GameStart();
    }
Exemplo n.º 2
0
 public void Initiallie(List <StageInfo> Stages)
 {
     targetHits        = new List <TargetHit>();
     this.StagesinArea = Stages;
     this.CurrentStage = StagesinArea[0];
     for (int i = 0; i < StagesinArea.Count; i++)
     {
         targetHits.Add(StagesinArea[i].GetComponent <TargetHit>());
     }
     targetHits[targetHits.Count - 1].IsLastArea = true;
     targetHits[CurrentStage.StageNum].Initialize(CurrentStage.InitializeTarget());
     StageStart();
 }
Exemplo n.º 3
0
    public void StageRestart()
    {
        int stagenum = CurrentStage.StageNum;

        Vector3 CurrentStagePosition = CurrentStage.transform.position;

        Destroy(CurrentStage.gameObject);

        StagesinArea[stagenum] = mapGenerator.MapGenerate(stagenum, CurrentStagePosition);
        CurrentStage           = StagesinArea[stagenum];
        targetHits[stagenum]   = StagesinArea[CurrentStage.StageNum].GetComponent <TargetHit>();
        if (StagesinArea.Count - 1 == stagenum)
        {
            targetHits[stagenum].IsLastArea = true;
        }
        targetHits[stagenum].Initialize(CurrentStage.InitializeTarget());
    }