Create a resource node
Role: Game Programmer
Evaluating: Pfc Felipe Wagner Game Programmer
Start Date: 5/10/2018 20:48
End Date: 5/24/2018 20:48
Set a value for wealth/oil so we have something to reference from. The player should start with X amount of resources. Make this value adjustable for the designer in unity.
We need a resource node that our support units could "mine" This nod should have X amount of at the start of the game.
We also want the resource to become "drained" or destroyed when that value is less than 1
Script and Sample Scene for the Resource Node.
- Can set resource type (Wealth/Oil)
- Can set starting capacity of the node
- Log Error if Capacity < 0
- Can set onMined and onDrained events
- Change the mesh of the node when drained (It's a second script linked on the onDrained event. This script might be used to change the mesh of units when they get destroyed too.)
- Sample Scene with UI elements to set the Team Id of the unit mining the node, a button to mine the node once and text elements to debug the node and events info.
I believe that's all for this agenda. If I let anything out or you need any adjustments please let me know.
I think the resource node is a simple one. It can have a script with a Capacity and a Type only. When the mining unit is near the node it starts to extract the resources from the capacity until it reaches zero and becomes drained. We can link events like OnDrained, OnMining, OnDestroyed, ... to change the model, play sounds/effects or something else.
I will upload an unitypackage with the code and sample scene, ok?
I did the check in already.