Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     sun             = GameObject.Find("Sun");
     camera          = GetComponent <Camera>();
     tapController   = GameObject.Find("Controller").GetComponent <TapController>();
     pinchController = GameObject.Find("Controller").GetComponent <PinchController>();
     swipeController = GameObject.Find("Controller").GetComponent <SwipesController>();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     currentStage    = Stages.WaitingForStart;
     tutorialZoomIn  = GameObject.Find("SpreadGesture");
     tutorialZoomOut = GameObject.Find("PinchGesture");
     pinchController = GameObject.Find("Controller").GetComponent <PinchController>();
     tutorialZoomIn.SetActive(false);
     tutorialZoomOut.SetActive(false);
 }