Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject ballhitbox = GameObject.Find("BallHitBox");

        ballH = ballhitbox.GetComponent <Ball>();
        GameObject gb = GameObject.Find("Ghost");

        ghost = gb.GetComponent <GhostCalcul>();
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject gb = GameObject.Find("Ghost");

        ghost = gb.GetComponent <GhostCalcul>();

        GameObject ar = GameObject.Find("arena");

        arena = ar.GetComponent <Arena>();

        string file = timingFile.text;

        lines = file.Split('\n');
    }