public void Start() { descriptor = (InventDescScript)Object.FindObjectOfType(typeof(InventDescScript)); if (!DebugMode) { ThingsToSay = ("Mission Objective:@Eliminate the experimental jet.@@Weapons and equipment are OSP(On - Site Procurement).@@Good luck. Press space to close this window."); StartCoroutine(ShowText(ThingsToSay)); } else { GetComponent <Canvas>().enabled = false; } }
// Start is called before the first frame update void Start() { descriptionscript = (InventDescScript)Object.FindObjectOfType(typeof(InventDescScript)); InventoryCanvas = GameObject.FindWithTag("InventoryCanvas").GetComponent <Canvas>();; InventoryCanvas.enabled = false; }