示例#1
0
    public void Idle()
    {
        animator.SetInteger("Horizontal", 0);

        if ((GameManager.gameMode == GameMode.SEARCH || GameManager.gameMode == GameMode.ESCAPE) &&
            charaProvider.m_rigidbody2D.velocity == Vector2.zero)
        {
            charaProvider.LightOn();
        }
    }