Ejemplo n.º 1
0
        public static void Start(ILKitBehaviour ilkitBehaviour)
        {
            var ilBehaviour = new GameOverUI
            {
                transform     = ilkitBehaviour.transform,
                gameObject    = ilkitBehaviour.gameObject,
                MonoBehaviour = ilkitBehaviour
            };

            ilkitBehaviour.Script = ilBehaviour;

            ilBehaviour.SetupBinds();
            ilBehaviour.OnStart();

            ilkitBehaviour.OnDestroyAction += ilBehaviour.DestroyScript;
        }
Ejemplo n.º 2
0
 public void ShowGameOverUI(int score = 0)
 {
     GameOverUI.Show();
     GameOverUI.GetILComponent <GameOverUI>()
     .GameOverUIText.text = score.ToString();
 }
Ejemplo n.º 3
0
 public void ShowRestartButton()
 {
     GameOverUI.GetILComponent <GameOverUI>().RestartButton.Show();
 }