Beispiel #1
0
 override public void setInitialValues(SpaceObject spaceObject)
 {
     spaceObject.AdjustSize(scale);
     spaceObject.AdjustSpeed(minSpeed, maxSpeed);
     spaceObject.AdjustMass(scale);
     if (overrideSprite != null)
     {
         SpriteRenderer spriteRenderer = spaceObject.GetComponent <SpriteRenderer>();
         spriteRenderer.sprite = overrideSprite;
     }
 }