コード例 #1
0
 public void MoveNext()
 {
     currentSentence = currentSentence.GoToNextSentence(this);
     if (currentSentence == null)
     {
         FinishGame();
         SwitchScenes.Get().ActiveMainScene();
     }
     else
     {
         currentSentence.ShowIn(this);
     }
 }
コード例 #2
0
    public void StartContest(IContestData contest, GameObject guy,
                             Quaternion rotation, Vector3 scale,
                             Vector3 offset)
    {
        onContest      = true;
        currentContest = contest;
        currentContest.Restart();
        currentSentence = contest.Begin();
        lastAnswer      = -1;

        contestGuy = Instantiate(guy, guyPosition.position + offset, rotation);
        Destroy(contestGuy.GetComponent <ContestInitiator>());
        contestGuy.transform.localScale = scale;
        realGuy = guy;

        currentSentence.ShowIn(this);
    }