void Start() { SCM = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc> (); PCM = GameObject.FindGameObjectWithTag("PuntoCalienteManagerTag").GetComponent <PuntoCalienteManager> (); SpawnParticule = GameObject.FindGameObjectWithTag("PuntoCalienteManagerTag").GetComponent <Transform>(); t = 1f; CalcularValores(); }
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); }
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>(); }
void Update() { ScM = GameObject.FindGameObjectWithTag("ScoreManagerTag").GetComponent <ScoreManagerSc>(); if (ItsFinishScoreInGame == true) { Score_ = ScM.ScoreCount; HightScore_ = ScM.HighScoreCount; DontDestroyOnLoad(this.gameObject); } }
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> (); }