// Update is called once per frame
 void Update()
 {
     if (!mover.isMoving() && mover.location == onArrivalAt)
     {
         eventAt.hasNoiseOn = true;
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (spawned)
     {
         return;
     }
     if (!mover.isMoving() && mover.location == arivalPoint)
     {
         dialogue.SetActive(true);
         spawned = true;
     }
 }
示例#3
0
    // Update is called once per frame
    void Update()
    {
        if (!_mover.isMoving())
        {
            foreach (CameraConfig config in camConfigs)
            {
                if (config.switchPoint == _mover.location)
                {
                    _targetTransform = config.cameraPos;
                }
            }
        }

        _camera.position = MathUtil.Damp(_camera.position, _targetTransform.position, 3f, Time.deltaTime);
        _camera.rotation = MathUtil.Damp(_camera.rotation, _targetTransform.rotation, 2f, Time.deltaTime);
    }