public void Awake() { rend = renderer; trans = transform; trans.localPosition = Vector3.zero; trans.localScale = Vector3.one; trans.localRotation = Quaternion.identity; renderer.sharedMaterial.mainTexture = SpriteMeshEngine.SpriteSheetManager.GetSpriteSheet("Planets").Texture; planetTypes = PlanetTypes.GetPlanetTypes(); meshFilter = GetComponent <MeshFilter>(); mesh1 = new Mesh(); mesh2 = new Mesh(); }