Advertisement
Marlingaming

Public Planet Spawn

Aug 16th, 2022
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System.Collections;
  2. using System.CollectionsGeneric;
  3. using UnityEngine;
  4.  
  5. public class PlanetSpawner : MonoBehaviour
  6. {
  7.     void Start()
  8.     {
  9.    
  10.     }
  11.  
  12.     public SpawnPlanet( PlanetTypeSpawn , Name , X , Y )
  13.     {
  14.         Vector3 bar.position = {X,Y};
  15.         Instantiate( PlanetTypeSpawn,bar.transform,SpawnToParent);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement