void SwitchToBrownHole() { switched = false; Destroy(black); brown = cam.gameObject.AddComponent <BrownHoleEffect>(); brown.brownHole = transform; brown.brownHoleShader = BrownHoleShader; brown.radius = .63f; brown.black = .27f; }
void Start() { brown = Camera.main.GetComponentInChildren <BrownHoleEffect>(); cam = brown.transform; brown.brownHole = transform; }