Beispiel #1
0
    // Update is called once per frame
    //void Update () {

    //}

    public void GenerateSubject()
    {
        _subj = Instantiate(_subjectPF, _subjectSpotRight.transform).GetComponent <SubjectDriver>();
        // TODO randomize objects, rotation, more...
        _subj.Generate();
        // TODO somewhere I need to give input access to the left but not the right
        _subj.SetNotInteractable();

        _subjDrawing = Instantiate(_subjectPF, _subjectSpotLeft.transform).GetComponent <SubjectDriver>();
        _subjDrawing.Generate();
        _subjDrawing.gameObject.SetActive(false);
        //_subjDrawing.ReplaceMaterials();
    }