Exemple #1
0
        //--------------------------------------
        //  Methods
        //--------------------------------------

        //	PUBLIC

        /// <summary>
        /// Start this instance.
        /// </summary>
        void Start()
        {
            //DEFAULT
            _currentCameraTrackingPriority = TrackingPriority.Low;

            //
            _trackableObjectComponents_list   = new List <TrackableObjectComponent>();
            TrackingCameraComponent._instance = this;


            //X
            float xPositionTemporaryTarget_float = 20;

            _xPosition_lerptarget = new LerpTarget(transform.position.x, xPositionTemporaryTarget_float, _xPositionMin_float, _xPositionMax_float, _xPositionAcceleration_float);

            //
            //Y
            float yPositionTemporaryTarget_float = 20;

            _yPosition_lerptarget = new LerpTarget(transform.position.y, yPositionTemporaryTarget_float, _yPositionMin_float, _yPositionMax_float, _yPositionAcceleration_float);

            //Z
            //NOTE: WE USE NEGATIVES BECAUSE THE 'DISTANCE' IS IN THE NEGATIVE QUADRANT (OF CARTESIAN COORDS)
            //NOTE, WE REVERSE MIN/MAX HERE BY DESIGN BECAUSE OF NEGATIVE VALUES
            _zPosition_lerptarget = new LerpTarget(transform.position.z, -_distanceDefault_float, -_distanceMax_float, -_distanceMin_float, _zPositionAcceleration_float);
        }
Exemple #2
0
        /// <summary>

        // PRIVATE STATIC

        //--------------------------------------
        //  Methods
        //--------------------------------------

        ///<summary>
        ///	Use this for initialization
        ///</summary>
        public void Start()
        {
            _yPosition_lerptarget    = new LerpTarget(0, 0, Constants.PADDLE_Y_LERP_MINIMUM, Constants.PADDLE_Y_LERP_MAXIMUM, Constants.PADDLE_Y_LERP_ACCELERATION_DEFAULT);
            _animator                = GetComponent <Animator>();
            _positionAtStart_vector3 = gameObject.transform.position;
        }
        // PRIVATE STATIC

        //--------------------------------------
        //  Methods
        //--------------------------------------

        ///<summary>
        ///	Use this for initialization
        ///</summary>
        public void Start()
        {
            animation             = GetComponentInChildren <Animation>();
            animationMonitor      = GetComponentInChildren <AnimationMonitor>();
            _yPosition_lerptarget = new LerpTarget(0, 0, -5, 5, 0.5f);
        }
		//--------------------------------------
		//  Methods
		//--------------------------------------

		//	PUBLIC 

		/// <summary>
		/// Start this instance.
		/// </summary>
	 	void Start () 
		{

			//DEFAULT
			_currentCameraTrackingPriority = TrackingPriority.Low;

			//
			_trackableObjectComponents_list = new List<TrackableObjectComponent>();
			TrackingCameraComponent._instance = this;


			//X
			float xPositionTemporaryTarget_float = 20;
			_xPosition_lerptarget = new LerpTarget (transform.position.x, xPositionTemporaryTarget_float, _xPositionMin_float, _xPositionMax_float, _xPositionAcceleration_float);

			//
			//Y
			float yPositionTemporaryTarget_float = 20;
			_yPosition_lerptarget = new LerpTarget (transform.position.y, yPositionTemporaryTarget_float, _yPositionMin_float, _yPositionMax_float, _yPositionAcceleration_float);

			//Z
			//NOTE: WE USE NEGATIVES BECAUSE THE 'DISTANCE' IS IN THE NEGATIVE QUADRANT (OF CARTESIAN COORDS)
			//NOTE, WE REVERSE MIN/MAX HERE BY DESIGN BECAUSE OF NEGATIVE VALUES
			_zPosition_lerptarget = new LerpTarget (transform.position.z, -_distanceDefault_float, -_distanceMax_float, -_distanceMin_float, _zPositionAcceleration_float);
		
		}
Exemple #5
0
 ///<summary>
 ///	Use this for initialization
 ///</summary>
 public void init()
 {
     isRunningUpdate               = false;
     _turretSpinning_lerptarget    = new LerpTarget(0, 0, 10, 2f);
     _turretFiringAngle_lerptarget = new LerpTarget(0, 0, 0, 5f);
 }