// Use this for initialization void Start() { curpos = shop.transform.position; hov = shop.transform.position + Vector3.up * amountToMove; rest = curpos; audioSource = GetComponent <AudioSource>(); selected = false; onetime1 = false; onetime2 = true; count = (ShopSelect_Script)selectHandler.GetComponent(typeof(ShopSelect_Script)); }
// Use this for initialization void Start() { curpos = rocket.transform.position; hov = rocket.transform.position + Vector3.up * amountToMove; rest = curpos; audioSource = GetComponent <AudioSource>(); textHandler = (Shopkeeper_Script)shopkeeper.GetComponent(typeof(Shopkeeper_Script)); count = (ShopSelect_Script)selectHandler.GetComponent(typeof(ShopSelect_Script)); onetime1 = false; onetime2 = false; selected = false; }