public CState(CStateMgr StateMgr, CState parent = null) { if (StateMgr == null) { Debug.LogError("State Construct Error. StateMgr is null."); } m_stateMgr = StateMgr; if (parent != null) { m_parent = parent; } }
public CState(CStateMgr StateMgr, string luaFile) : this(StateMgr) { LoadFromFile(luaFile); }
// Use this for initialization protected virtual void Start() { m_animationMgr = new CAnimationMgr(this); m_stateMgr = new CStateMgr(this); }