Quantcast
Channel: Latest Questions by Kenshen112
Viewing all articles
Browse latest Browse all 16

A quick question C#

$
0
0
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 () { } }

Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>