예제 #1
0
    private void Awake()
    {
        if (Instance != null)
        {
            Destroy(Instance.gameObject);
        }
        Instance = this;

        IsScoreCalcFinished = false;
        playerScore         = 0;
        rivalScore          = 0;
    }
예제 #2
0
 private void OnDestroy()
 {
     Instance = null;
 }