Inheritance: MonoBehaviour
Beispiel #1
0
    void Start()
    {
        m_AI = GetComponent<TSAI>();
        m_movement = GetComponent<TSMovement>();
        m_magic = GetComponent<TSMagic>();
        m_animation = GetComponent<TSAnimation>();
        m_health = GetComponent<Health>();

        m_health.OnDie += OnDie;
        m_health.OnStagger += OnStagger;

        GameController.AddCharacter(transform);
    }
Beispiel #2
0
 private void Start()
 {
     m_magic = GetComponent<TSMagic>();
 }