void Start() { track = GetComponentInParent <Track>(); effect = GetComponentInParent <TapEffectPool>(); songManager = GetComponentInParent <SongManager>(); _camera = Camera.main; }
public void Init() { songManager = SongManager.INSTANCE; tracks = GetComponentsInChildren <Track>(); if (useNotePool) { InitNotePool(); } }
public void Init(SongManager songManager) { this.songManager = songManager; tracks = GetComponentsInChildren <Track>(); if (useNotePool) { InitNotePool(); } }
void Awake() { INSTANCE = this; }