예제 #1
0
파일: Navi.cs 프로젝트: hafewa/U3Dtest
    // ================================================================ //

    // コンボをセットする.
    public void             setCombo(SceneControl.COMBO combo)
    {
        if (this.face_icons.Count > 0)
        {
            this.face_icons[0].setCombo(combo);
        }
    }
예제 #2
0
    public void             setCombo(SceneControl.COMBO combo)
    {
        UnityEngine.Sprite sprite = null;

        switch (combo)
        {
        case SceneControl.COMBO.NORMAL:
        {
            sprite = this.uiSpriteNormal;
            this.ip_scale.ip_rate = IP_RATE_NORMAL;
            this.ip_scale.start(SCALE_NORMAL);
        }
        break;

        case SceneControl.COMBO.CHAIN01:
        {
            sprite = this.uiSpriteChain1;
            this.ip_scale.ip_rate = IP_RATE_NORMAL;
            this.ip_scale.start(SCALE_COMBO01);
        }
        break;

        case SceneControl.COMBO.CHAIN02:
        {
            sprite = this.uiSpriteChain2;
            this.ip_scale.ip_rate = IP_RATE_NORMAL;
            this.ip_scale.start(SCALE_COMBO02);
        }
        break;

        case SceneControl.COMBO.FAILED:
        {
            sprite = this.uiSpriteFailed;
            this.step.set_next(STEP.MISS);
        }
        break;
        }

        if (sprite != null)
        {
            this.GetComponent <UnityEngine.UI.Image>().sprite = sprite;
        }
    }