Beispiel #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);
    }
Beispiel #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>();
    }
Beispiel #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();
    }
Beispiel #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();
     }
 }
Beispiel #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>();
    }
 public void Start()
 {
     animator = GetComponent <Animator>();
     audiosrc = FindObjectOfType <Machine2Audio>();
     popUp.CreatePopUp();
 }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     popUp.CreatePopUp();
 }
Beispiel #8
0
 private void Start()
 {
     popUp = popUpObject.GetComponent <PopUp>();
     popUp.CreatePopUp();
 }