// Use this for initialization
 void Start()
 {
     currentObj     = gameObject;
     gameViewer     = currentObj.transform.gameObject;
     flames         = GameObject.FindGameObjectWithTag("flames");
     flameslow      = new Vector3(1, 1, 1);
     highHeatButton = GameObject.FindGameObjectWithTag("plusheat").GetComponent <HighHeatButton> ();
 }
 // Use this for initialization
 void Start()
 {
     currentObj     = gameObject;
     gameViewer     = currentObj.transform.gameObject;
     originalPos    = new Vector3(0, 9, -29);
     camera         = GameObject.FindGameObjectWithTag("MainCamera");
     highHeatButton = GameObject.FindGameObjectWithTag("plusheat").GetComponent <HighHeatButton> ();
     lowHeatButton  = GameObject.FindGameObjectWithTag("minusheat").GetComponent <LowHeatButton> ();
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     currentObj = gameObject;
     gameViewer = currentObj.transform.gameObject;
     flames     = GameObject.FindGameObjectWithTag("flames");
     flamesoff  = new Vector3(0, 0, 0);
     StartCoroutine(OffBunsenBurner());
     highHeatButton = GameObject.FindGameObjectWithTag("plusheat").GetComponent <HighHeatButton> ();
     lowHeatButton  = GameObject.FindGameObjectWithTag("minusheat").GetComponent <LowHeatButton> ();
 }