public int stingerState = 0; //0:coming, 1:getting 2:holding, 2:shooting // Use this for initialization void Start() { //rb = GetComponent<Rigidbody>(); panel = GameObject.Find("panel"); normal = GetComponent <Renderer>().material.shader; GetComponent <AudioSource>().loop = true; GetComponent <AudioSource>().clip = windSound; GetComponent <AudioSource>().Play(); reference = GameObject.Find("ref").GetComponent <Transform>(); player = GameObject.FindGameObjectWithTag("Player"); playerScript = player.GetComponent <tutorialPlayer> (); textScript = GameObject.FindGameObjectWithTag("tutorial").GetComponent <TutorialTexts> (); //AudioSource audio = GetComponent<AudioSource> (); pointer = GameObject.FindGameObjectWithTag("ControllerPointer"); transform.parent = reference.transform; //controllerPointer = GameObject.FindGameObjectWithTag ("ControllerPointer"); //set transform parent to the playr so that stinger does not move with bee LookAtPlayer(); }