- Home /
Question by
tn73 · Oct 27, 2020 at 04:36 AM ·
levelif-statementspanelcomplete
Activating Completed Level Panel using if statement
I'm trying to activate the Complete panel when a condition is achieved, the panel is disabled at the start of the scene and I want it to activate when the conditions are met
using System.Collections; using System.Collections.Generic; using UnityEngine;
public class EndScreen : MonoBehaviour { public GameObject Endscreen; // Start is called before the first frame update public void CompleteLevel() {
if (KeepScore.Score >= 4)
{
Endscreen.SetActive(true);
}
}
}
Comment
Your answer
Follow this Question
Related Questions
End of Level Freeze 1 Answer
OnTriggerEnter to load new level 1 Answer
Complete Level Script 1 Answer
Puzzle Box Level Complete - Help Needed! 2 Answers
How to set up a task that after completed sends you to next level? 2 Answers