Exemplo n.º 1
0
    public PopUp DisplayMesagge(string m, string title = "")
    {
        GameObject pop = Instantiate(messagePopUp, transform.position, Quaternion.identity, transform);
        PopUp      p   = PopUp.CreatePopUp(pop, m, title);

        return(p);
    }
Exemplo n.º 2
0
    // Update is called once per frame
    public void Start()
    {
        animator = GetComponent <Machine4Animation>();
        popUP.CreatePopUp();
        GameObject machine4 = GameObject.Find("Machine4");

        machine4Script = machine4.GetComponent <machine4>();
        audiosrc       = FindObjectOfType <Machine3Audio>();
    }
Exemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        rb = gameObject.GetComponent <Rigidbody>();

        GameObject machine7 = GameObject.Find("Machine7__V2");

        machine7Script = machine7.GetComponent <machine7>();
        popUP.CreatePopUp();
    }
Exemplo n.º 4
0
 private void toFarOrToClose()
 {
     if (KinectScript.toFar || KinectScript.toClose)
     {
         if (!RunOnce && KinectScript.alreadyConnected)
         {
             popUp.CreatePopUp();
             changeLightsToRed();
             RunOnce = true;
         }
     }
     else
     {
         RunOnce = false;
         popUp.deletePopUp();
         changeLightsToWhite();
     }
 }
Exemplo n.º 5
0
    void Start()
    {
        popUp.CreatePopUp();

        GameObject KinectAvatar = GameObject.Find("KinectAvatar");

        scriptBodySourceView = KinectAvatar.GetComponent <BodySourceView>();

        GameObject Velocity = GameObject.Find("VelocityManager");

        scriptVelocity = Velocity.GetComponent <VelocityCalc>();

        GameObject spawnerRight = GameObject.Find("BallspwnerRight");

        scriptBallSpawnerRight = spawnerRight.GetComponent <BallSpwner>();

        GameObject spawnerLeft = GameObject.Find("BallspwnerLeft");

        scriptBallSpawnerLeft = spawnerLeft.GetComponent <BallSpwner>();

        GameObject spawnerBottom = GameObject.Find("BallspwnerBottom");

        scriptBallSpawnerBottom = spawnerBottom.GetComponent <BallSpwner>();
    }
Exemplo n.º 6
0
 public void Start()
 {
     animator = GetComponent <Animator>();
     audiosrc = FindObjectOfType <Machine2Audio>();
     popUp.CreatePopUp();
 }
Exemplo n.º 7
0
 // Start is called before the first frame update
 void Start()
 {
     popUp.CreatePopUp();
 }
Exemplo n.º 8
0
 private void Start()
 {
     popUp = popUpObject.GetComponent <PopUp>();
     popUp.CreatePopUp();
 }