void Start() { ScorePlayer2 = score2.GetComponent <Text>(); NoteD = GameObject.FindGameObjectWithTag("NoteDestroyer"); noteDestroy = NoteD.GetComponent <NoteDestroyer>(); old = color.color; }
// Use this for initialization void Start() { health = GetComponent <NoteDestroyer>(); }
// Use this for initialization void Start() { nt = GetComponent <note>(); // sp = nt.speed; health = GetComponent <NoteDestroyer>(); }