Example #1
0
        public void InitSmoothFoolow(float distance, float damping, float limitYMin, float limitYMax, float proportion, bool isNeedDamping, Vector3 offset, Transform target, Joystack joystack)
        {
            this.distance      = distance;
            this.damping       = damping;
            this.limitYMin     = limitYMin;
            this.limitYMax     = limitYMax;
            this.proportion    = proportion;
            this.isNeedDamping = isNeedDamping;
            this.offset        = offset;
            this.target        = target;
            this.joystack      = joystack;
#if UNITY_EDITOR
            speedX  = 200;
            speedY  = 200;
            isTouch = false;
            isMouse = true;
#else
            speedX  = 30;
            speedY  = 30;
            isTouch = true;
            isMouse = false;
#endif
        }
Example #2
0
 public override void Start()
 {
     instance = this;
 }