This commit is contained in:
parent
26b85818a5
commit
5d9c044aff
|
@ -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 () {
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ada97eb6567e9a6498bb1160924d034a
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 60353f72506bab14093f9e6296b7748e
|
||||
NativeFormatImporter:
|
||||
userData:
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue