Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("Start - Starting");
        Not_Connected.SetActive(true);
        Connected_Idle.SetActive(false);
        Connected_Start.SetActive(false);
        Debug.Log("Start - Setup Thread");



        (new Thread(() => Setup())).Start();
    }
Ejemplo n.º 2
0
 void Update()
 {
     if (changedState)
     {
         Debug.Log("Update - Changed!");
         if (state == "unconnected")
         {
             if (!started)
             {
                 Not_Connected.SetActive(true);
                 Connected_Idle.SetActive(false);
                 Connected_Start.SetActive(false);
                 changedState = false;
                 Debug.Log("Update - Unconnected");
             }
         }
         else if (state == "connected")
         {
             if (!started)
             {
                 Not_Connected.SetActive(false);
                 Connected_Idle.SetActive(true);
                 Connected_Start.SetActive(false);
                 changedState = false;
                 Debug.Log("Update - Connected");
             }
         }
         else if (state == "transition") //transiton!
         {
             /* t_count++;
              *
              * if(t_count == 1) { //load transition 1
              *
              * } else if (t_count == 2) //laod transition 2
              * {
              *
              * } else //load .....
              * {
              *
              * }*/
         }
     }
 }