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