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); }
// 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>(); }
// 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(); }
private void toFarOrToClose() { if (KinectScript.toFar || KinectScript.toClose) { if (!RunOnce && KinectScript.alreadyConnected) { popUp.CreatePopUp(); changeLightsToRed(); RunOnce = true; } } else { RunOnce = false; popUp.deletePopUp(); changeLightsToWhite(); } }
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(); }
// Start is called before the first frame update void Start() { popUp.CreatePopUp(); }
private void Start() { popUp = popUpObject.GetComponent <PopUp>(); popUp.CreatePopUp(); }