void Update() { NextSW = Next.GetComponent <ChangeColor2>(); if (NextSW.GetSelect()) { ChangeText("Selected"); Cont.SetSW(); NextSW.ResetSelect(); } }