コード例 #1
0
    void Start()
    {
        KanjiManager.Init(); //IMPORTANT
        KanjiWriter = gameObject.AddComponent <WriterManager>();
        KanjiWriter.TargetCamera = TargetCamera;
        KanjiWriter.TrailPrefab  = TrailPrefab;
        KanjiWriter.AddOnWinPerfectEvent(new OnWinPerfect(WinPerfectEvent));
        KanjiWriter.AddOnWinAlmostEvent(new OnWinAlmost(WinAlmostEvent));
        KanjiWriter.AddOnWinPoorEvent(new OnWinPoor(WinPoorEvent));
        KanjiWriter.AddOnNewKanjiEvent(new OnNewKanji(NewKanjiEvent));

        KanjiWriter.NewKanji();
    }
コード例 #2
0
 void WinPerfectEvent()
 {
     Score += 300;
     Debug.Log("Perfect!");
     KanjiWriter.NewKanji();
 }