Пример #1
0
    internal void OnPanOutComplete()
    {
        CameraOperator.FollowFocusObject();

        if (onComplete != null)
        {
            onComplete();
        }
    }
Пример #2
0
    public void Spawn(EnvironmentCube cube)
    {
        gameObject.SetActive(true);
        transform.position             = cube.GetCoordinates().GetWorldPosition();
        Camera.main.transform.position = new Vector3(transform.position.x, Camera.main.transform.position.y, transform.position.z);

        _currentCube = cube;
        _canMove     = true;
        _health      = MAX_HEALTH;

        CameraOperator.SetFocusObject(transform);
        CameraOperator.SnapToFocus();
        CameraOperator.FollowFocusObject();
    }
Пример #3
0
 public void CameraFollowFocus()
 {
     CameraOperator.dampTime = cameraDampTime;
     CameraOperator.FollowFocusObject(GetCameraFocus());
 }