public void ShowBeatingResult() { BeatingResultView beatingResultView = GridUtility.SpawnBeatingResultView(piece.beatingResult); beatingResultView.Initialize(GridView.instance.anchor.ToWorldPosition(piece.position)); Destroy(); }
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(); } } }
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(); }