public void Init() { mf = gameObject.AddComponent <MeshFilter>(); mr = gameObject.AddComponent <MeshRenderer>(); mf.mesh = CustomMesh.Oil(); SetMaterial(Color.red); Deactivate(); }
public void Init() { mf = gameObject.AddComponent <MeshFilter>(); mr = gameObject.AddComponent <MeshRenderer>(); mf.mesh = CustomMesh.Oil(); SetMaterial(Color.red); Deactivate(); }