private void Spawn(ItemRuntimeData runtimeData, ItemSettings settings) { Transform randomSpawnTransform = m_ItemSpawnPoints[Random.Range(0, m_ItemSpawnPoints.Length)]; Item spawnedItem = Instantiate(settings.Prefab, randomSpawnTransform.position, Quaternion.identity).GetComponent <Item>(); spawnedItem.SetRuntimeData(runtimeData); }
public void SetRuntimeData(ItemRuntimeData runtimeData) { m_RuntimeData = runtimeData; UpdateVisualization(); }
public void SetRuntimeData(ItemRuntimeData runtimeData) { m_RuntimeData = runtimeData; }