protected virtual Vector3 getLookatPosition()
        {
            float step = 1.0f;

            if (BaseAppSetting.GetInstance().isFarView == false)
            {
                step = 0.8f;
            }

            Quaternion rotation = Quaternion.Euler(this.rotationAngle);

            calDistance = rotation * Vector3.forward * this.distance * step;
            calOffset   = rotation * this.cameraOffset;
            Vector3 retV = calDistance - calOffset + (rotation * this.offsetLookAt);

            retV.y = retV.y - height + this.heightLookAt;

            return(retV);
        }
Exemple #2
0
 protected virtual void Start()
 {
     appSetting      = BaseAppSetting.GetInstance();
     this.enabled    = appSetting.soundEnabled;
     this.soundValue = appSetting.soundPercent;
 }