Quantcast
Channel: Answers by "TotalAnnihilation"
Viewing all articles
Browse latest Browse all 14

Answer by TotalAnnihilation

$
0
0
Hey, You could make an empty game object and attach your script to it, but I would say try to do it the "common" way. Meaning, create a player, attach a script to it and inside that script declare his lifepoints and stuff. Then, make an enemy, attach a script to it containing his lifepoints etc. Then you could do a script for a weapon containing the damage and stuff. In Unity it is more component based. Playerstats or something like the amount of players/enemys I would put, as suggested above, in an empty gameobject (call it GameManager or something) and then let all the other objects get their information from the GameManager object. Hope that helped?

Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images