So I'm trying to program a questing system.... And i have a question i want to program a quest definition file in the sense i can enable the bool when i'm programming a quest and i suddenly have access to several different variables.. How do i do this in C#? I already have a quest code going i just need help
using UnityEngine;
using System.Collections;
public class Quests : MonoBehaviour {
public static bool Questing;
// Update is called once per frame
public static void OnGui () {
// Is Questing Allowed?
if(Questing == false){
GUI.Box(new Rect(10,10,10,10),"No Quests!!!");
}
if (Questing == true){
float timer;
Money.enabled = true;
}
}
void rewards () {
}
}
↧