private void Start() { rb = GetComponent <Rigidbody>(); player = GameObject.Find("LadybugAttractor"); //Ladybugs go to a separate object on player to control angle cam = GameObject.Find("Player"); score = GameObject.Find("GameManager").GetComponent <bubbleScore>(); }
private void Start() { rb = player.GetComponent <Rigidbody>(); fadeAni = fader.GetComponent <Animator>(); spawnedBugs = GameObject.FindGameObjectWithTag("Ladybug"); score = GameObject.Find("GameManager").GetComponent <bubbleScore>(); }