summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs
blob: 76745234afe75047844b577cf63e4cfaf1ecaca1 (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;

namespace WK
{

    /// <summary>
    /// 角色的玩法、行为,是角色的玩法核心。需要继承实现这个类
    /// </summary>
    public abstract class CharacterBehaviour
    {
        private PlayerController m_Controller;
        public PlayerController controller { get { return m_Controller; } }

        public CharacterInfo info { get { return m_Controller.info; } }

        public virtual void OnCreate()
        {
        }

        public virtual void OnGlobalUpdate()
        {
        }

        public virtual void OnStageUpdate()
        {
        }

    }

}