public void Init(BaseGesture gesture, float maxX, float minX, float velocity, int count, int markerTopPosition, int swapRange, ViewManager viewManager) { float position = 0f; float offset = 0f; this.viewManager = viewManager; calc = new Calc(maxX, minX, velocity); gameObject.SetActive(true); gameObject.name = gesture.ToString(); offset = this.GetOffset(); position = calc.GetXByTime(gesture.StartPosition + offset); this.SetOrientation(calc.IsLeft); this.SetMarkerPreReady(GestureStates.PreReady); this.SetGestureSprite(gesture.GestureType); gameObject.transform.localPosition = new Vector3(position, markerTopPosition + count % swapRange, 0); }