BITFALL/Assets/Artists/Scripts/HotFix/OpenWorldFPVFix.cs

20 lines
375 B
C#
Raw Normal View History

2023-11-30 00:23:23 +08:00
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
namespace BITFALL.HotFix
{
public class OpenWorldFPVFix : MonoBehaviour
{
[SerializeField] private Transform cameraPoint;
private async void Start()
{
await Task.Delay(100, destroyCancellationToken);
cameraPoint.parent = null;
}
}
}