Quantcast
Channel: Questions in topic: "unity3.5"
Viewing all articles
Browse latest Browse all 122

inherit value from class to sub class c#,inherit variable value from class to sub class c#

$
0
0
I have 2 scenes each one have own script simply I want to get a value from script 1 and use it in script 2 which is loaded in the second scenes which happen is it always load the default value for this variable ex; if I call string variable which should have value (sas) it appears in the second script with null if integer it will be 0 although if I print it in the first script it will have the right value which "sas" . ![alt text][1] the second script which extends the first one. ![alt text][2] [1]: /storage/temp/133538-script-1.png [2]: /storage/temp/133539-script-2.png

Viewing all articles
Browse latest Browse all 122

Trending Articles



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