Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

I can't acces to a class from other class

$
0
0
Hi I'm making modification to the rolller ball standart asset but is can find the other Class where i've saved my variables. In unity 5. //This is one class using UnityEngine; using System.Collections; public static class StaticVariablesGame { public static int PLAYER_LAYER_NUMBER = 8; public static int PLAYER_LAYER_MASK = (1 << PLAYER_LAYER_NUMBER); } // This is on other class. Ball.cs without namespace Collider[] colliders = Physics.OverlapSphere(transform.position, angleDetection, ~(StaticVariablesGame.PLAYER_LAYER_MASK)); // The name `StaticVariablesGame' does not exist in the current context

Viewing all articles
Browse latest Browse all 827

Trending Articles