Esempio 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;
        }
Esempio n. 2
0
 public void ShowGameOverUI(int score = 0)
 {
     GameOverUI.Show();
     GameOverUI.GetILComponent <GameOverUI>()
     .GameOverUIText.text = score.ToString();
 }
Esempio n. 3
0
 public void ShowRestartButton()
 {
     GameOverUI.GetILComponent <GameOverUI>().RestartButton.Show();
 }