Example #1
0
        // 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);
        }
Example #2
0
 // Use this for initialization
 void Start()
 {
     respawnComponent = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ResourceSpawn>();
     currentTime      = delayTime;
 }