Пример #1
0
 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;
 }
Пример #2
0
 private void Start()
 {
     effect = Camera.main.GetComponent <BlackHoleEffect>();
 }