Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        strike gm = st.GetComponent <strike>();
        int    i  = gm.s;
        int    h  = gm.o;

        if (i == 1)
        {
            s1.SetActive(true);
        }
        else if (i == 2)
        {
            s2.SetActive(true);
        }
        else if (i == 0)
        {
            s1.SetActive(false);
            s2.SetActive(false);
        }
        if (h == 1)
        {
            o1.SetActive(true);
        }
        else if (h == 2)
        {
            o2.SetActive(true);
        }
        else if (h == 0)
        {
            o1.SetActive(false);
            o2.SetActive(false);
        }
    }
Beispiel #2
0
 public Process()
 {
     MashSteps = new List<MashStep>();
     Strike = new strike();
     Sparge = new sparge();
     Boil = new boil();
     Fermentation = new fermentation();
     Session = new session();
 }
Beispiel #3
0
    // Update is called once per frame
    void Update()
    {
        strike s = cg.GetComponent <strike>();
        int    i = s.o;

        if (i == 0)
        {
            a.SetActive(false);
        }
        if (i == 3)
        {
            a.SetActive(true);
        }
    }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     Screen.SetResolution(1280, 600, true);
     TEXT1     = GameObject.Find("c1Text");
     txtField1 = TEXT1.GetComponent <Text> ();
     TEXT2     = GameObject.Find("c2Text");
     txtField2 = TEXT2.GetComponent <Text> ();
     TEXT3     = GameObject.Find("c3Text");
     txtField3 = TEXT3.GetComponent <Text> ();
     QText     = QField.GetComponent <Text> ();
     ball1     = (strike)Ball1.GetComponent(typeof(strike));
     ball2     = (strike)Ball2.GetComponent(typeof(strike));
     ball3     = (strike)Ball3.GetComponent(typeof(strike));
 }