25 lines
482 B
C#
25 lines
482 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
|
|
public class ButtonShowScore : MonoBehaviour
|
|
{
|
|
[SerializeField] Button nextButton;
|
|
|
|
void Start()
|
|
{
|
|
ShowingScore score = FindFirstObjectByType<ShowingScore>();
|
|
if (score != null)
|
|
{
|
|
score.levelComplete();
|
|
}
|
|
else
|
|
{
|
|
Debug.LogWarning("ShowingScore tidak ditemukan di scene ini.");
|
|
}
|
|
}
|
|
|
|
}
|