usingSystem.Collections;usingUnityEngine;[RequireComponent(typeof(AudioSource))]publicclassSC_Weapon:MonoBehaviour{publicboolsingleFire=false;publicfloatfireRate=0.1f;publicGameObjectbulletPrefab;publicTransformfirePoint;publicintbulletsPerMagazine=30;publicfloattimeToReload=1.5f;publicfloatweaponDamage=15;//How ...
The most important concept in the Unity Editor is the GameObject. Every object that you want to create in your game has to be a GameObject. However, you need to add components to a GameObject to give it properties, so that it can become a character, an environment, or a special effect....