void SwitchToBlackHole() { switched = true; Destroy(brown); black = cam.gameObject.AddComponent <BlackHoleEffect>(); black.blackHole = transform; black.blackHoleShader = BlackHoleShader; black.radius = .4f; black.distance = .58f; black.black = .27f; }
private void Start() { effect = Camera.main.GetComponent <BlackHoleEffect>(); }