void Start()
 {
     /* WWW www = new WWW("https://static.wixstatic.com/media/3808b8_033ae6d0cced405a957339a3a3834a0a~mv2.jpg/v1/fill/w_281,h_197,al_c,lg_1,q_80/3808b8_033ae6d0cced405a957339a3a3834a0a~mv2.webp");
      * yield return www;
      *
      * img.texture = www.texture;
      * img.SetNativeSize();
      * img = gameObject.GetComponet<RawImage>();  */
     //temporaire//////////////////////////
     editorModBeActive = true;
     EditorModeButton.SetActive(false);
     PanelEventInfosPlayer.SetActive(false);
     ////////////////////////////////////////
     //TextMeshPro  eventInfosInputfield = GetComponent< TextMeshPro > ();
     //ImportImage();
     PanelMessageAlert.SetActive(false);
     canBeSave            = false;
     boutonEventGenerated = false;
     chrono            = 0.5f;
     LocalNombreBouton = 0;
     PanelEventChoise.SetActive(true);
     PanelEventEditor.SetActive(false);
     ModifyButton.SetActive(false);
     DeleteButton.SetActive(false);
     numberFigure = 0;
     manager      = GameObject.Find("managerEditor").GetComponent <EVENTCREATOR_Manager>();
     if (gameObject.name != "MANAGER")
     {
         for (int i = 0; i < textArray.Length; i++)
         {
             textArray[i].text = " ";
         }
     }
 }
Ejemplo n.º 2
0
        //public GameObject ChildGameObject2 = ParentGameObject.transform.GetChild(1).gameObject;

        // Use this for initialization
        void Start()
        {
            InfosButtonBeGet = false;
            // NumberOfEvent = 0;

            // scriptEditorManager = test.GetComponent<SceneEditorManager>();
            //  test = this.GameObject;
            //test = Find.GameObject<GameObject>;

            manager1 = GameObject.Find("MySqlManager").GetComponent <EVENTCREATOR_Manager>();
            GetInfoButtonToServer();
            //GetInfoButtonToServer();
            // UpdateButton();
            // Debug.Log("manager marche : " + manager1.InumeroEvent);

            // GameObject.onClick.AddListener(TaskOnClick);
            //NumberOfEvent = manager.globalNombreBouton;
            //NumberOfEvent = SceneEditorManager.PublicNombreBouton;

            // Debug.Log("EventButton: " + SceneEditorManager.PublicNombreBouton);
            // TitreEventText.text = "Event: " + manager.globalNombreBouton;
            //TitreEventText.text = manager.nombreEvent;

            //
            //test.name = "Whatever";
        }
Ejemplo n.º 3
0
 void Start()
 {
     manager = GameObject.Find("MySqlManager").GetComponent <EVENTCREATOR_Manager>();
 }