Example #1
0
    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);
    }
Example #2
0
    public void SetRuntimeData(ItemRuntimeData runtimeData)
    {
        m_RuntimeData = runtimeData;

        UpdateVisualization();
    }
Example #3
0
 public void SetRuntimeData(ItemRuntimeData runtimeData)
 {
     m_RuntimeData = runtimeData;
 }