This commit is contained in:
ligiatosa 2015-01-14 05:32:10 +02:00
parent 26b85818a5
commit 5d9c044aff
15 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections;
public class AddSpider : MonoBehaviour {
// Use this for initialization
public GameObject enemy;
public misca2 sc;
IEnumerator Start() {
for (int i = 0; i < 10; i++) {
yield return new WaitForSeconds(Random.Range(0, 5.0f));
Instantiate(enemy);
enemy.transform.position = new Vector3(Random.Range(-2.5f, 2.5f),0,Random.Range(-0.5f, 0.5f));
sc=enemy.AddComponent("misca2") as misca2;
//sc.Invoke("Start()",0);
}
}
// Update is called once per frame
void Update () {
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ada97eb6567e9a6498bb1160924d034a
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Binary file not shown.

View File

@ -0,0 +1,4 @@
fileFormatVersion: 2
guid: 60353f72506bab14093f9e6296b7748e
NativeFormatImporter:
userData:

Binary file not shown.