Egg's is the best provider of Egg rolls and Egg bakes, trust me. Thank you! Definitely tempted to do something with the beans as they are funny to eliminate XD
dan.wiltshire
Creator of
Recent community posts
This is the script I used to throw chairs if this helps anyone :)
public class WeaponManager : MonoBehaviour
{
public GameObject[] weapons;
public Transform spawnPoint;
public GameObject currentWeapon;
public bool isHandEmpty;
public bool canThrow;
public int weaponAmount;
public float weaponCooldown;
public Text weaponTextAmount;
// Start is called before the first frame update
void Start()
{
isHandEmpty = true;
SpawnWeapon();
}
// Update is called once per frame
void Update()
{
weaponTextAmount.text = "Weapons left: " + weaponAmount.ToString();
if (weaponAmount <= 1)
{
canThrow = false;
}
else if (weaponAmount >= 2)
{
canThrow = true;
}
if (Input.GetKey(PlayerControls.Throw))
{
if (canThrow == true && isHandEmpty == false)
{
currentWeapon.transform.parent = null;
currentWeapon.GetComponent<WrestlerWeapon>().ThrowWeapon();
currentWeapon = null;
StartCoroutine(spawningWeapon());
isHandEmpty = true;
weaponAmount--;
}
}
}
public void SpawnWeapon()
{
if (isHandEmpty == true)
{
GameObject spawnedWeapon = Instantiate(weapons[Random.Range(0, weapons.Length)], spawnPoint.position, spawnPoint.rotation);
currentWeapon = spawnedWeapon;
currentWeapon.transform.parent = spawnPoint.transform;
isHandEmpty = false;
}
}
IEnumerator spawningWeapon()
{
yield return new WaitForSeconds(weaponCooldown);
SpawnWeapon();
}
}
Security Officer Simulator
Welcome to your new job as a security officer! In this training game please remove bombs from civilians with your branded security officer magnet. You will have a small time limit to identify and remove the bomb from civilians but be careful to not remove any other items.
Controls
Left Click - Interact
High scores
Please enter a name (under 8 characters), use this same name to overwrite your lowest score. Any duplicate or same names will be removed from the scoreboard so use a name as unique as possible like: Dan0120



















