// Resources private void SpawnAttributeResource(byte x, byte y) { var tempResource = new ResourceSpawn() { ResourceId = ((MapResourceAttribute)Attributes[x, y]).ResourceId, X = x, Y = y, Z = ((MapResourceAttribute)Attributes[x, y]).SpawnLevel }; ResourceSpawns.Add(tempResource); }
// Use this for initialization void Start() { respawnComponent = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ResourceSpawn>(); currentTime = delayTime; }