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(); }
void Awake() { instance = (DragDetector)target; }