Example #1
0
 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>();
 }
Example #2
0
 private void Start()
 {
     rb          = player.GetComponent <Rigidbody>();
     fadeAni     = fader.GetComponent <Animator>();
     spawnedBugs = GameObject.FindGameObjectWithTag("Ladybug");
     score       = GameObject.Find("GameManager").GetComponent <bubbleScore>();
 }