Exemplo n.º 1
0
    private void Start()
    {
        existingItems = new List <GameObject>();
        timeCounter   = 0;

        cam              = CameraFollow.Instance;
        bki              = cam.BKI;
        cam.onBKIChange += ChangeGeneratePosition;
    }
Exemplo n.º 2
0
 public void ChangeGeneratePosition()
 {
     foreach (GameObject go in existingItems)
     {
         if (go != null)
         {
             Destroy(go);
         }
     }
     existingItems.Clear();
     bki = cam.BKI;
 }
Exemplo n.º 3
0
 private void Start()
 {
     bki         = defaultBKI;
     cam         = Camera.main;
     isConstrain = true;
 }