Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     hp           = Maxhp;
     slider.value = 1;
     pScore       = GameObject.Find("PopupScore").GetComponent <PopUpScore>();
     score        = GameObject.Find("ScoreManager").GetComponent <Score>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     transform.rotation = Quaternion.Euler(new Vector3(0.0f, 0.0f, 100.0f));
     rb = GetComponent <Rigidbody>();
     rb.AddForce(new Vector3(power, -1000.0f, 0.0f));
     cameraManager = GameObject.Find("CameraManager").GetComponent <CameraManager>();
     explosion     = GameObject.Find("EffectManager").GetComponent <Explosion>();
     missilePoper  = GameObject.Find("BallPoper");
     sound         = GameObject.Find("SoundManager").GetComponent <Sound>();
     score         = GameObject.Find("ScoreManager").GetComponent <Score>();
     pScore        = GameObject.Find("PopupScore").GetComponent <PopUpScore>();
 }