Tuesday, 26 January 2016

Unity Lesson: Game Production - Input, Game, Enemy and Player Manager

Starting by creating empty child in Unity and adding scripts to them, I have created these four scripts:
Input, Player, Enemy and Game Manager.



Here is the Game manager script


Input Script


These codes are basic knowledge on how to build up inputs in games.
As seen in the picture below, whenever pressing P, inputs apply and the program gives the next result:

No comments:

Post a Comment