Advertisement
shadowplaycoding

P001_SpaceObjects

Sep 12th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public static class SpaceObjects
  6. {
  7.     public static GameObject CreateSphereObject(Vector3 position){
  8.         GameObject sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere);
  9.         sphere.transform.position = position;
  10.  
  11.         return sphere;
  12.     }
  13. }
  14.  
  15. /*
  16. Copyright Shadowplay Coding 2019 - see www.shadowplaycoding.com for licensing details
  17. Removing this comment forfits any rights given to the user under licensing.
  18. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement