public void InstantiateStructure(int indexOfStructure) { GameObject go = structures[indexOfStructure]; newStructure = Instantiate(go, instPoint.position, go.transform.rotation).GetComponent <cssBaseStructure>(); AddBaseStructure(newStructure); }
public void AddBaseStructure(cssBaseStructure st) { baseStructures.Add(st); }