Ejemplo n.º 1
0
        public static Material StopPlanetSpinning(GameObject spinningPlanetGameObject)
        {
            Material planetMaterial = PlanetUtils.GetPlanetMaterial(spinningPlanetGameObject);

            if (planetMaterial != null)
            {
                planetMaterial.SetFloat("_RotationSpeed", 0f);
            }
            return(planetMaterial);
        }
Ejemplo n.º 2
0
 public unsafe static long $Invoke2(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(PlanetUtils.StopPlanetSpinning((GameObject)GCHandledObjects.GCHandleToObject(*args))));
 }
Ejemplo n.º 3
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(PlanetUtils.GetPlanetMaterial((GameObject)GCHandledObjects.GCHandleToObject(*args))));
 }
Ejemplo n.º 4
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(PlanetUtils.GetAllPlayerFacingPlanets()));
 }