summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterBehaviour.cs
blob: f056056d8b66ce9c5de89680627a89d77a24c4e4 (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
33
34
35
36
37
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace WK
{

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

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

        public virtual void OnCreate()
        {
        }

        public virtual void OnPreUpdate()
        {
        }

        public virtual void OnUpdate()
        {
        }

        public virtual void OnPostUpdate()
        {

        }

    }

}