// Update is called once per frame void Awake() { m_stateMgr = GetComponentInParent <StateMgr>(); m_stateMgr.AddState(this); onInit(); }
// Update is called once per frame void Awake () { m_stateMgr = GetComponentInParent<StateMgr>(); m_stateMgr.AddState(this); onInit(); }