Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     paused     = false;
     pauseMenu  = Instantiate(pauseMenu, new Vector3(100.0f, 100.0f), Quaternion.identity);
     playButton = Instantiate(playButton, new Vector3(100.0f, 100.0f), Quaternion.identity);
     exitButton = Instantiate(exitButton, new Vector3(100.0f, 100.0f), Quaternion.identity);
 }
Ejemplo n.º 2
0
    void Awake()
    {
        breaktime = false;

        _floorData = GameObject.Find("Floor").GetComponent <MissedBall>();
        _goalData  = GameObject.Find("Goal").GetComponent <BallInGoal>();

        _pauseStatus = GameObject.Find("Main Camera").GetComponent <PausePlay>();

        string m_Path = Application.dataPath;
    }