![]() ![]() ![]() But in this case I have to connect the script to other ones which would use any property of this agent (by GetComponent) My idea to organize this thing to create a 'Property' script where I would write all of the properties which need for the given agent type. ![]() the HP can be used in many scripts and has no proper script to define/initialize it, but there's ton of other examples. There's some properties which are very general like "HP" for example. Normally I would create this property in the "Extracting" script which is fine, but should I really create different scripts for (almost) every property of an agent? For this I can create a script which executes the process also I need a variable which define the maximum amount of collected resource the agent can carry. I became confused where should I initialize the basic properties of my agents.Įxample: I have some workers (agents) in a strategy game and they can extract resources. I'm not a noob in Unity although not the most experienced one, but during one of my project a noob question came to my mind! Strange but this never was an issue for me during my old projects. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |