void Start() { currentScore = 0; gameManager = PuzzleShooterGameManager.instance; timeConditionMet = true; if (hasTimeLimit) { currentTime = timeLimit; } scoreConditionMet = (hasTargetScore) ?false:true; levelCompleted = false; }
// Start is called before the first frame update void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); saveDataPath = Application.persistentDataPath + saveDataPath; LoadProgress(); } else { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { saveData = PuzzleShooterGameManager.instance; buttonList = new List <Button>(); InstantiateLevelButtons(); }