// Use this for initialization void Start() { if (isLocalPlayer) { myRigidbody = GetComponent <Rigidbody2D>(); activeMoveSpeed = moveSpeed; curHealth = maxHealth; canMove = true; spawnPoints = FindObjectsOfType <NetworkStartPosition>(); curWeapon = new WeaponSpecs(Weapons.shotgun, bullet, shotClip); //curWeapon = new WeaponSpecs(Weapons.bazooka, projectile); cdTimer = curWeapon.cooldown; anim = GetComponent <Animator>(); } curHealth = maxHealth; curWeapon = new WeaponSpecs(Weapons.shotgun, bullet, shotClip); //curWeapon = new WeaponSpecs(Weapons.bazooka, projectile); cdTimer = curWeapon.cooldown; }
public WeaponSpecs(WeaponSpecs other) { type = other.type; ammo = other.ammo; cooldown = other.cooldown; recoil = other.recoil; bulletTime = other.bulletTime; bulletSpeed = other.bulletSpeed; shotAudio = other.shotAudio; }