private void Start() { rb2d = GetComponent <Rigidbody2D>(); laser2 = GetComponent <RectTransform>(); findPlayArea = GetComponent <FindPlayArea>(); spShop = GetComponent <SpriteShop>(); location = base.transform.position; FindPlayArea.setLaser2Bounds(); }
void Start() { player = GetComponent <Player> (); shop = GetComponent <SpriteShop> (); }