ProjectDDD/Assets/_DDD/_Scripts/Restaurant/Character/Player/PlayerCharacter.cs

23 lines
582 B
C#
Raw Normal View History

using UnityEngine;
namespace DDD.Restaurant
2025-07-09 09:45:11 +00:00
{
[RequireComponent(typeof(PlayerMovement))]
public class PlayerCharacter : RestaurantCharacter
2025-07-09 09:45:11 +00:00
{
protected override void Awake()
{
base.Awake();
2025-08-17 06:02:28 +00:00
2025-08-19 09:24:46 +00:00
PlayerManager.Instance.RegisterPlayer(gameObject);
2025-08-17 06:02:28 +00:00
}
2025-08-19 09:24:46 +00:00
protected override void Start()
2025-08-17 06:02:28 +00:00
{
2025-08-19 09:24:46 +00:00
base.Start();
var cameraObject = CameraManager.Instance.GetCameraGameObject(CameraType.RestaurantBaseCamera);
cameraObject.SetFollowAndLookAtTarget(transform);
}
2025-07-09 09:45:11 +00:00
}
}