// Use this for initialization on first frame void Start() { config = Constants.Configuration.Instance; // Store button positions to prevent drift in update method button1Pos = transform.GetChild(0).Find("Button 1").localPosition; button2Pos = transform.GetChild(0).Find("Button 2").localPosition; // Store button gameobject references button1 = transform.GetChild(0).Find("Button 1").gameObject; button2 = transform.GetChild(0).Find("Button 2").gameObject; }
void Start() { config = Constants.Configuration.Instance; }