Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

how can get value from same script ??

$
0
0
i try long way to get value, public Stats thisStats; public Stats otherStats; public int health; public int defense; public float damage; public float power; public bool skill1; public bool skill2; public bool skill3; private void Update() { if (otherStats != null) { thisStats.health = otherStats.health; thisStats.defense = otherStats.defense; thisStats.damage = otherStats.damage; thisStats.power = otherStats.power; thisStats.skill1 = otherStats.skill1; thisStats.skill2 = otherStats.skill2; thisStats.skill3 = otherStats.skill3; } } how to get value better way ?

Viewing all articles
Browse latest Browse all 215

Trending Articles



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