using UnityEngine; public class Playground { private float _score; private void SomethingSomethingScore() { var score = 0.0f; _score = score; } private void ShowTheScore() { Debug.Log(_score); } }