public void Awake() { pulse = GetComponent<Pulse>(); pulse.SetColor(color); GetComponent<Switch>().SetColor(color); }