private void Start()
 {
     planet = FindObjectOfType<PlanetAttractor>().gameObject;
     m = planet.GetComponent<MeshFilter>().mesh;
     mc = planet.GetComponent<MeshCollider>();
     planetScript = planet.GetComponent<OctahedronSphereTester>();
 }
Beispiel #2
0
 private void Awake()
 {
     Instance = this;
     GetComponent <MeshFilter>().mesh = OctahedronSphereCreator.Create(subdivisions, radius);
 }
Beispiel #3
0
 public void OnEnable()
 {
     _this = (OctahedronSphereTester)target;
 }