public void main(Elyot3D elyot3D) { this._elyot3D = elyot3D; _loadObj = new LoadObj(); _loadObj.ReadInfoObj(Application.dataPath + "/african_head.obj"); MainFunc(); }
void Awake() { _texture = new Texture2D(width, height); window.GetComponent <RectTransform>().sizeDelta = new Vector2(width, height); window.texture = _texture; _elyot3D = new Elyot3D(); main = new Main(); }