Continued Shoot First drag the laser into my assets folder, and then drag it into the hierarchy. Then create a prefab folder and then drag all things in the hierarchy into it except EventSystem. Now create the laser variable in our script file, add the laser sprite to player’s laser prefab, and then delete the …
Unity 2D – Laser Defender (2)
Continued Movement & Time Create a new script for player, and open it (Also create a new folder for it). The next step is to make my ship move. In visual studio which open script for me, add code as below: player.cs: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // …
Unity 2D – Laser Defender (1)
It is a special period for everyone. However I believe it could also be a chance for myself cause I have my own time now and I could seek some interesting projects. I take this note for tracking my learning process of unity engine. And the main content in this note I refer to one …