summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller/PCController.cs
blob: 5ad3abc119642329c2ef8e7ff02acce04682049b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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<PCState>();
        unitState.Initialize();

        unitAnimation = gameObject.GetOrAddComponent<PCAnimation>();
        unitAnimation.Initialize();
    }

    public override void Update()
	{
		base.Update();
	}

}