示例#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);
    }
示例#2
0
 public void ShowTrashName(TrashAssets trash)
 {
     value.Value = trash._name;
 }
示例#3
0
 public bool CheckTrashCan(TrashAssets trashItem)
 {
     return(GetTrashType() == trashItem.trashType);
 }
示例#4
0
    public void Spawn()
    {
        currentAsset = trashes[Random.Range(0, trashes.Count)];

        Roller.SpawnTrash(trashPrefab, currentAsset);
    }