ProjectDDD/Assets/_DDD/_Scripts/Restaurant/RestaurantCharacter/Player/RestaurantPlayerCharacter.cs

23 lines
602 B
C#

using UnityEngine;
namespace DDD.Restaurant
{
[RequireComponent(typeof(RestaurantPlayerMovement))]
public class RestaurantPlayerCharacter : RestaurantCharacter
{
protected override void Awake()
{
base.Awake();
PlayerManager.Instance.RegisterPlayer(gameObject);
}
protected override void Start()
{
base.Start();
var cameraObject = CameraManager.Instance.GetCameraGameObject(CameraType.RestaurantBaseCamera);
cameraObject.SetFollowAndLookAtTarget(transform);
}
}
}