Example #1
0
    public RhythmContainer(IRhythmController rhythmController, IRhythmStreak rhythmStreak)
    {
        this.rhythmController = rhythmController;
        this.rhythmStreak     = rhythmStreak;

        this.currentLesson = Save.DeserializeFromPlayerPrefs <Lesson> (ConstString.CurrentData);
    }
 private void Awake()
 {
     this.rhythmController = this.gameObject.GetComponent <IRhythmController>();
     this.rhythmStreak     = this.gameObject.GetComponent <IRhythmStreak>();
     if (this.challengeContainer == null)
     {
         this.challengeContainer = new RhythmChallengeContainer();
     }
 }
Example #3
0
 public void Init(IRhythmController newRhythmController, IRhythmStreak newRhythmStreak,
                  int newIndex, float [] newBpms, float newBarBeat, ObjectPool newPool, GameObject newPrefab, Transform newContainer)
 {
     this.rhythmController = newRhythmController;
     this.rhythmStreak     = newRhythmStreak;
     this.index            = newIndex;
     this.bpms             = newBpms;
     this.BarBeat          = newBarBeat;
     this.selfColor        = this.gameObject.GetComponent <MeshRenderer> ().material.color;
     this.pool             = newPool;
     this.prefab           = newPrefab;
     this.container        = newContainer;
 }