void Update()
{
if (Input.GetKeyDown(KeyCode.LeftArrow))
{
Vector3 position = this.transform.position;
position.x--;
this.transform.position = position;
}
if (Input.GetKeyDown(KeyCode.RightArrow))
{
Vector3 position = this.transform.position;
position.x++;
this.transform.position = position;
}
if (Input.GetKeyDown(KeyCode.DownArrow))
{
gameObject.AddComponent(typeof(Rigidbody2D));
}
}
Overall, I have learned a lot with this more focused study with creating Unity 2D UI and assets. Knowing general formats and the creation process for UI elements as well as particle effects have helped enhance and fine tune the player’s experience. If I were to have more time to work on creating more UI elements, I would look into how to make a basic mini map system as there was some player feedback on wanting one. I would also like to learn more level design to give a better flow in all the levels that are present as I am currently not fully satisfied with what we have. However, I am proud of the work I have done so far.