Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Very strange behavior after compiling for PC

$
0
0
I am compiling my project for PC When i am in the unity editor the game is running fine. i have a static class in which i store my game parameters using UnityEngine; using System.Collections; using System.Collections.Generic; public static class game_params { public static List enviroments; ..... and in my main script i create one cube and i access the game_params class and the reference to that class is causing the problem because if i remove it the cube is created (this is happening only after compilation) and the only line of code after the crationf of the cube is game_params.enviroments = new List(); in the game the console tells me : "an exception was thrown by the type initializer of game_params" how do i fix that ? i guess that fore some kind of reason the exe does not compile this class but what can i do about it :? or is there a problem because it is static i cant even add the game_params class to an empty game object, it says: "can't add script behaviour game_params. The script class can't be abstract." or am i missing some reference or something i dont know i have no clue... i dont have namespaces too

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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