Example #1
0
    // 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;
    }
Example #2
0
 void Start()
 {
     config = Constants.Configuration.Instance;
 }