Esempio n. 1
0
    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;
        }
    }
Esempio n. 2
0
 public CState(CStateMgr StateMgr, string luaFile)
     : this(StateMgr)
 {
     LoadFromFile(luaFile);
 }
Esempio n. 3
0
 // Use this for initialization
 protected virtual void Start()
 {
     m_animationMgr = new CAnimationMgr(this);
     m_stateMgr     = new CStateMgr(this);
 }