Esempio n. 1
0
        protected void Start()
        {
            _meshFilter   = GetComponent <MeshFilter>();
            _meshRenderer = GetComponent <MeshRenderer>();

            _meshRenderer.material = _ribbonMaterial;

            _verts   = new List <Vector3>();
            _indices = new List <int>();
            _colors  = new List <Color>();
            _normals = new List <Vector3>();

            _historyManager      = GameObject.FindObjectOfType <HistoryManager>();
            transform.position   = Vector3.zero;
            transform.rotation   = Quaternion.identity;
            transform.localScale = Vector3.one;
        }