Exemple #1
0
        public void ShowBeatingResult()
        {
            BeatingResultView beatingResultView = GridUtility.SpawnBeatingResultView(piece.beatingResult);

            beatingResultView.Initialize(GridView.instance.anchor.ToWorldPosition(piece.position));
            Destroy();
        }
Exemple #2
0
        public void ShowBeatingResult()
        {
            BeatingResultView beatingResultView = GridUtility.SpawnBeatingResultView(piece.beatingResult);

            beatingResultView.Initialize(GridView.instance.anchor.ToWorldPosition(piece.position));
            if (piece.previous != null)
            {
                if (_tempo.gameObject.activeSelf)
                {
                    _icon.SetActive(false);
                }
                else
                {
                    Destroy();
                }
            }
        }
Exemple #3
0
        public void ShowBeatingResult()
        {
            BeatingResultView beatingResultView = GridUtility.SpawnBeatingResultView(piece.beatingResult);

            switch (piece.beatingResult)
            {
            case BeatingResultType.Good:
            case BeatingResultType.Perfect:
            case BeatingResultType.Bad:
                beatingResultView.Initialize(new Vector3(GridView.instance.anchor.ToWorldPosition(piece.position).x, GridView.instance.scanLinePosition.y));
                break;

            case BeatingResultType.Miss:
                beatingResultView.Initialize(GridView.instance.anchor.ToWorldPosition(piece.position));
                break;

            default:
                throw new Exception();
            }
            Destroy();
        }