Ejemplo n.º 1
0
    public void Reset()
    {
        st.SetFailClear();
        if (st2 != null)
        {
            st2.SetFailClear();
        }
        PlayToggle toggle = GameObject.FindGameObjectWithTag("compiler").transform.GetChild(0).GetComponent <PlayToggle>();

        toggle.OnMouseDown();
        Time.timeScale = 1;
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     playToggle = GameObject.FindGameObjectWithTag("compiler").transform.GetChild(0).GetComponent <PlayToggle>();
     failPanel  = GameObject.FindGameObjectWithTag("canvas").transform.Find("fail").gameObject;
     clearPanel = GameObject.FindGameObjectWithTag("canvas").transform.Find("clear").gameObject;
 }