Exemplo n.º 1
0
    public static CGhostState_Stan Instance()
    {
        if (instance == null)
        {
            instance = new CGhostState_Stan();
        }

        return(instance);
    }
Exemplo n.º 2
0
    void UpdateServer()
    {
        switch (m_status)
        {
        case (int)GhostStateID.MAIN:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Main.Instance());
            break;

        case (int)GhostStateID.ATK:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Atk.Instance());
            break;

        case (int)GhostStateID.AVATAR:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Avatar.Instance());
            break;

        case (int)GhostStateID.DASH:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Dash.Instance());
            break;

        case (int)GhostStateID.MOVE:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Move.Instance());
            break;

        case (int)GhostStateID.SLOW:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Slow.Instance());
            break;

        case (int)GhostStateID.STAN:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Stan.Instance());
            break;

        case (int)GhostStateID.WAIT:

            m_ghostMain.m_pStateMachine.ChangeState(CGhostState_Wait.Instance());
            break;
        }
    }
Exemplo n.º 3
0
    //void OnTriggerStay(Collider other)
    //{
    //    if (other.gameObject.tag == "Candy")
    //    {
    //        if (other.GetComponent<CCandy>().m_isShot==true)
    //        {
    //            m_Status = GHOTS_STATUS.STAN;
    //        }
    //    }


    //}

    public void HitCandy()
    {
        m_pStateMachine.ChangeState(CGhostState_Stan.Instance());
    }