コード例 #1
0
ファイル: Seyana.cs プロジェクト: Musasin/Seyana
    public void Grip()
    {
        if (talk.GetState() == Talk.State.CLICK || talk.GetState() == Talk.State.LIGHT)
        {
            talk.AddClickCount();
            float randR = Random.Range(0.2f, 1.0f);
            float randG = Random.Range(0.2f, 1.0f);
            float randB = Random.Range(0.2f, 1.0f);
            sr.color = new Color(randR, randG, randB);
            AudioManager.Instance.PlaySE("click", 0.1f);
        }
        else if (talk.GetState() == Talk.State.CONNECT || talk.GetState() == Talk.State.GRIP || talk.GetState() == Talk.State.SHAKE)
        {
            if (talk.GetState() == Talk.State.GRIP)
            {
                talk.StartShale();
            }

            AudioManager.Instance.PlaySE("pyui");
            isGrip = true;
        }
    }