//public AudioClip itemCubeImpact; // Use this for initialization void Awake() { GM = GameObject.Find("GameManager").GetComponent <GameManager> (); slomoMeter = GameObject.Find("GameManager").GetComponent <SlomoMeter>(); rb = GetComponent <Rigidbody2D>(); OGSpeed = speed; }
// Use this for initialization void Awake() { slomoMeter = GetComponent <SlomoMeter>(); messages = GameObject.Find("Canvas_Messages").GetComponent <Messages>(); itemCube = GameObject.Find("ItemCube").GetComponent <Transform>(); sCollider = GameObject.Find("sCollider").GetComponent <AreaChecker>(); lCollider = GameObject.Find("lCollider").GetComponent <AreaChecker>(); ObsSpwnr = GameObject.Find("GameManager").GetComponent <ObstacleSpawner>(); balls = GameObject.FindGameObjectsWithTag("Ball"); _GO_itemCube = GameObject.Find("ItemCube"); // **Temp** this Game Object should be called from a public variable the designer can //assign in the inspector. Time.timeScale = 1f; }