Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

Namespace not working

$
0
0
I am making a script that should simplify things for other scripts, and to use the functions I decided to use a namespace. The script looks like this: using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Namespace { public class Helper : MonoBehaviour { public Value value1; private Value value2; private Value value3 public void SetValues(value number, value number2) { value2 = number; value3 = number2; } public void Activate() { // some code here StartCoroutine(Cooldown); } public IEnumerator Cooldown() { //some code here } } } I can use the `using Namespace;` and when I want to acces a funtion like `Helper.Activate();` it recognize the `Helper` but the `Activate()` isn't recognized. Can someone help me with this issue?

Viewing all articles
Browse latest Browse all 398

Trending Articles



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