Exemple #1
0
    public void SpawnTrash(RollerTrash trash, TrashAssets asset)
    {
        CurrentTrash = Instantiate(trash, spawnPoint.position, Quaternion.identity, transform);

        CurrentTrash.TrashItem = asset;

        trashHolder.SetPositionAndRotation(spawnPoint.position, Quaternion.identity);
    }
Exemple #2
0
 public void ShowTrashName(TrashAssets trash)
 {
     value.Value = trash._name;
 }
Exemple #3
0
 public bool CheckTrashCan(TrashAssets trashItem)
 {
     return(GetTrashType() == trashItem.trashType);
 }
Exemple #4
0
    public void Spawn()
    {
        currentAsset = trashes[Random.Range(0, trashes.Count)];

        Roller.SpawnTrash(trashPrefab, currentAsset);
    }