// Use this for initialization void Start() { //Insatiate Every GameObject InstanciateAll = Instantiate(Arkball); InstanciateAll.transform.SetParent(this.transform); Input.ResetInputAxes(); allD = GameObject.FindGameObjectsWithTag("cube"); ball = FindObjectOfType <BallArk> (); pspeed = FindObjectOfType <PlayerArk> (); arb = FindObjectOfType <Arbrito> (); liveE = FindObjectOfType <ExplodeLife> (); player = (GameObject)GameObject.FindGameObjectWithTag("Player"); playerSpawn = (GameObject)GameObject.FindGameObjectWithTag("PlayerSpawn"); showsum = FindObjectOfType <ShowSum> (); ShowDeathMenu.SetActive(false); StartGame(); timeToAdvance = 0.3f; advanceDistance = 0.1f; waitforNextRow = 16.0f; puntoInicialXL = arrow1.transform.position.x; puntoInicialXR = arrow2.transform.position.x; }
// Use this for initialization void Start() { ball = FindObjectOfType <BallArk>(); pspeed = FindObjectOfType <PlayerArk>(); arb = FindObjectOfType <Arbrito>(); }