コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     ml         = GameObject.Find("PhotonDontDestroy").GetComponent <MenuLogic>();
     coords     = ml.getCoords();
     decidido   = false;
     decTomadas = ml.GetDecisionesTomadas();
 }
コード例 #2
0
 public void updateCoords(CoordsPlayer player)
 {
     if (player1)
     {
         coordsPlayer1 = player;
     }
     else
     {
         coordsPlayer2 = player;
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
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");
    }