Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
quick:design [2018/05/18 21:48] – pedro | quick:design [2018/11/15 10:39] – [In Behavior Bricks efficiency matters] pedro | ||
---|---|---|---|
Line 345: | Line 345: | ||
public GameObject prefab; | public GameObject prefab; | ||
public GameObject wanderArea; | public GameObject wanderArea; | ||
+ | public GameObject player; | ||
+ | |||
public int Spawns = 750; | public int Spawns = 750; | ||
Line 352: | Line 354: | ||
void Start() | void Start() | ||
{ | { | ||
- | entities = | + | entities = new List< |
- | | + | entities.Add(player); |
- | as GameObject[]); | + | |
- | entities.RemoveAll(e => e.GetComponent< | + | |
InvokeRepeating(" | InvokeRepeating(" | ||
} | } |