private void Start() { existingItems = new List <GameObject>(); timeCounter = 0; cam = CameraFollow.Instance; bki = cam.BKI; cam.onBKIChange += ChangeGeneratePosition; }
public void ChangeGeneratePosition() { foreach (GameObject go in existingItems) { if (go != null) { Destroy(go); } } existingItems.Clear(); bki = cam.BKI; }
private void Start() { bki = defaultBKI; cam = Camera.main; isConstrain = true; }