void RPC_AssignPickupProperties(int index) { weapon = allWeaponPickups[index].weapon; destructionColor = allWeaponPickups[index].weaponColor; GetComponent <Renderer>().material.color = destructionColor; }
public void SetEnergyWeapon(EnergyWeaponBase weapon) { hasEnergyWeapon = true; currentEnergyWeapon = weapon; weapon.SetOwner(player); weapon.SetEnergySource(this); }
public void PickedUpEnergyWeapon(EnergyWeaponBase pickedWeapon) { playerEnergy.energyPack.SetEnergyWeapon(PhotonNetwork.Instantiate(Path.Combine(pickedWeapon.pathStrings), Vector3.zero, Quaternion.identity).GetComponent <EnergyWeaponBase>()); }