This code is how the characters will shoot and apply damage. Lets get straight into it! So, the first thing here is that the code is calling the CharacterStat script and the game objects. Since we need the character stats to indicate whether the opponent is within range. Then, in void start, it will immediatelyContinue reading “Character Shoot Code”
Category Archives: Character
Character Movement Code
At the top, it references the stats from the Character Stat script, so it will be using those stats. As well as a boolean for moving, to state whether the character is moving or not, true or false. Next it references the the NavMeshAgent as nAgent, so it is easier to type. Finally, there isContinue reading “Character Movement Code”
Character Stats Code
This is the code for the stats of the characters. There is not a lot of code needed for this part since it just holds the name of the stats. It also draws the range of the characters on how far they can shoot. This can be changed very easily to showcase the other statContinue reading “Character Stats Code”