void Start() { meshFilter = this.GetComponent <MeshFilter>(); polygonCollider2D = this.GetComponent <PolygonCollider2D>(); boxCollider2D = this.GetComponent <BoxCollider2D>(); meshRenderer = this.GetComponent <MeshRenderer>(); updateDetecter = new UpdateDetecter(this.gameObject); updateDetecter.Reset(); meshFilter.mesh = null; MakePolygonMesh(); }
void Start() { updateDetecter = new UpdateDetecter(this); CheckUpdate(); }