using System; using System.Collections; using System.Collections.Generic; using _02.Scripts.WaterAndShip; using Sirenix.OdinInspector; using UnityEngine; public class GameManager : Singleton { [Title("Manager")] public DataManager DataManager { get; private set; } [Title("Controller")] public CameraController CameraController { get; private set; } public UiController UiController { get; private set; } public Player player; public List boats = new List(10); private void Init() { DataManager = FindObjectOfType(); CameraController = FindObjectOfType(); UiController = FindObjectOfType(); player = FindObjectOfType(); } protected override void OnAwake() { Init(); } public void testPrint() { print("Boat가 목표에 도착해서 이 함수를 호출합니다"); } }