// Use this for initialization void Start() { calculScoreScript = GameObject.Find("_manager").GetComponent <CalculScore>(); saveContentScript = GameObject.Find("_manager").GetComponent <SaveContentBetweenScenesScript>(); scriptLoopPrefabFigure = GameObject.Find("Xtra_330").GetComponent <LoopPrefabFigure>(); numberStage = 0; numberFigure = 0; actualFigure = 0; plane = GameObject.FindWithTag("planeGeneratorFigure"); alreadyPlace = false; futureFigure = 0; // scriptArrayFigure = gameObject.GetComponent<FigureChoice>(); // scriptArrayFigure.setTravelingVariable(); // figure = scriptArrayFigure.travelingFigureArray; //figure[scriptArrayFigure.travelingLevelFigure, i] if (!alreadyPlace) { placePlane(); } int v = 0; while (v < 10) { Debug.Log("figureNumberTabSave: " + saveContentScript.figureNumberTabSave[v]); // saveContentScript.figureNumberTabSave[actualFigure] = saveContentScript.figureNumberTabSave[actualFigure] + 1; v++; } }
public void setScript() { // Debug.Log("set script"); Getcheckpoint(true); CurrentFigure = GameObject.FindWithTag("onGoingFigure"); scriptScore = CurrentFigure.GetComponent <CalculScore>(); }
public GameObject FourArrow;//le feedBack a deplacer void Start() { scriptScore = GameObject.Find("_manager").GetComponent <CalculScore>(); managerScript = GameObject.Find("_manager").GetComponent <FigureManager>(); //feedBackCheckPointScript = GameObject.Find("1").GetComponent<feedBackCheckPoint>(); checkPointPassageSuccess = 0; // CheckpointSuccess.enabled = false; alreadyIncrease = false; numberOnLoop = 1; //manager = GameObject.FindWithTag("manager"); // managerScript = manager.GetComponent<FigureManager>(); checkPointActual = 0; checkPointNext = 1; }