// Start is called before the first frame update void Start() { ml = GameObject.Find("PhotonDontDestroy").GetComponent <MenuLogic>(); coords = ml.getCoords(); decidido = false; decTomadas = ml.GetDecisionesTomadas(); }
public void updateCoords(CoordsPlayer player) { if (player1) { coordsPlayer1 = player; } else { coordsPlayer2 = player; } }
private void Start() { ml = GameObject.Find("PhotonDontDestroy").GetComponent <MenuLogic>(); coordsPlayer = ml.getCoords(); coordsOther = ml.GetCoordsOther(); probabilidad = ml.getProbRuleta(); reducedOther = false; distanceInic = Vector3.Distance(timeReducedObject.transform.position, timeActual.transform.position); moving = false; if (decisionesTomadas.pos == -1) { ChangeMaxTime(tiempo.MaxTime); ChangeTimeActual(tiempo.ActualTimePlayer); } }
private void Start() { ml = GameObject.Find("PhotonDontDestroy").GetComponent <MenuLogic>(); //decision = GameObject.Find("DecisionActual").GetComponent<TextMeshProUGUI>(); coords = ml.getCoords(); coordsOther = ml.GetCoordsOther(); ej = ml.GetEsperarJugador(); if (ml.player1) { transform.position = new Vector3((coords.x * 7) - 1, coords.y * 7, 0); } else { transform.position = new Vector3((coords.x * 7) + 1, coords.y * 7, 0); } }
// Start is called before the first frame update void Start() { animator = transform.GetChild(0).GetComponent <Animator>(); ml = GameObject.Find("PhotonDontDestroy").GetComponent <MenuLogic>(); coords = ml.getCoords(); ej = ml.GetEsperarJugador(); decisionesTomadas = ml.GetDecisionesTomadas(); ej.jugar[0] = false; ej.jugar[1] = false; avisoEsperarJugador = GameObject.Find("EsperaJugador"); avisoEsperarJugador.transform.localScale = new Vector3(0, 0, 0); seleccionado = false; moving = false; stationId = (StationsId)GetComponent("StationsId"); }