Ejemplo n.º 1
0
 public void Init(Vector3 direction, List <GameObject> itemsInCollider, MeteorSelector meteorSelector)
 {
     rb = GetComponent <Rigidbody>();
     rb.AddForce(direction * strength);
     itemsToBeDestroyed      = itemsInCollider;
     meteorZone              = meteorSelector;
     meteorZone.meteorActive = true;
 }
Ejemplo n.º 2
0
 private void Start()
 {
     selector = meteorSelector.GetComponent <MeteorSelector>();
 }