This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
revival-survival/Assets/Scripts/Win.cs

30 lines
444 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Win : MonoBehaviour {
public LevelManager LM;
public Image im;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
WinCondition();
}
public void WinCondition()
{
if(LM.player.transform.position.x > 180)
{
print ("Test");
im.enabled = true;
}
}
}