public void SpawnTrash(RollerTrash trash, TrashAssets asset) { CurrentTrash = Instantiate(trash, spawnPoint.position, Quaternion.identity, transform); CurrentTrash.TrashItem = asset; trashHolder.SetPositionAndRotation(spawnPoint.position, Quaternion.identity); }
public void ShowTrashName(TrashAssets trash) { value.Value = trash._name; }
public bool CheckTrashCan(TrashAssets trashItem) { return(GetTrashType() == trashItem.trashType); }
public void Spawn() { currentAsset = trashes[Random.Range(0, trashes.Count)]; Roller.SpawnTrash(trashPrefab, currentAsset); }