using System.Collections; using System.Collections.Generic; using UnityEngine; // 玩家角色控制器 [DisallowMultipleComponent] public class PCController : UnitController { public static PCController instance; private void Awake() { instance = this; } public override void Initialize(GameObject obj, string folder) { base.Initialize(obj, folder); unitState = gameObject.GetOrAddComponent(); unitState.Initialize(); unitAnimation = gameObject.GetOrAddComponent(); unitAnimation.Initialize(); } public override void Update() { base.Update(); } }