Esempio n. 1
0
 private void Start()
 {
     gameMain          = GetComponent <GameMain>();
     cameraInteraction = GetComponent <CameraInteraction>();
     leftDragDetector  = new DragDetector(dragStartDistance);
     rightDragDetector = new DragDetector(dragStartDistance);
 }
 void Start()
 {
     leftDragDetector = new DragDetector(dragStartDistance);
     OrbitPoint       = new GameObject("Stage Orbit").transform;
     RootTransform.SetParent(OrbitPoint, true);
     OrbitPoint.Rotate(Vector3.up, -40, Space.World);
     OrbitPoint.Rotate(Vector3.left, 10, Space.World);
     currentRotation = new Vector2(40, -10);
     StartOrbit();
 }
Esempio n. 3
0
 void Awake()
 {
     instance = (DragDetector)target;
 }