Exemple #1
0
 void Start()
 {
     SCM            = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc> ();
     PCM            = GameObject.FindGameObjectWithTag("PuntoCalienteManagerTag").GetComponent <PuntoCalienteManager> ();
     SpawnParticule = GameObject.FindGameObjectWithTag("PuntoCalienteManagerTag").GetComponent <Transform>();
     t = 1f;
     CalcularValores();
 }
Exemple #2
0
 void Start()
 {
     SpawnParticule = GameObject.FindGameObjectWithTag("AroManagerTag").GetComponent <Transform>();
     SB             = GameObject.FindGameObjectWithTag("AroManagerTag").GetComponent <AroBonusManagerSc> ();
     maestro        = GameObject.FindGameObjectWithTag("CubeTag");
     SCM            = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc> ();
     transform.SetParent(maestro.transform);
 }
Exemple #3
0
 void Start()
 {
     _rb            = GetComponent <Rigidbody>();
     DS             = GameObject.FindGameObjectWithTag("DataScoreTag").GetComponent <DataScore> ();
     AudioMan       = GetComponent <AudioSource>();
     SCM            = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc> ();
     SpawnParticule = GameObject.FindGameObjectWithTag("PuntoCalienteManagerTag").GetComponent <Transform>();
 }
Exemple #4
0
 void Update()
 {
     ScM = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc>();
     if (ItsFinishScoreInGame == true)
     {
         Score_      = ScM.ScoreCount;
         HightScore_ = ScM.HighScoreCount;
         DontDestroyOnLoad(this.gameObject);
     }
 }
Exemple #5
0
 void Start()
 {
     moveForce = 3f;
     Fspeed    = 10f;
     NoSpeed   = Fspeed;
     MaxSpeed  = NoSpeed * 6.0f; //Control Speed of the Ball
     delay     = 1f;             // Time between swipes
     TimeOut   = 0;
     vi        = new Vector3(0f, 0f, 0f);
     Active    = true;
     SCM       = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc> ();
     rb        = GameObject.FindGameObjectWithTag("Player").GetComponent <Rigidbody> ();
 }