Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.CollectionsGeneric;
- using UnityEngine;
- public class PlanetSpawner : MonoBehaviour
- {
- void Start()
- {
- }
- public SpawnPlanet( PlanetTypeSpawn , Name , X , Y )
- {
- Vector3 bar.position = {X,Y};
- Instantiate( PlanetTypeSpawn,bar.transform,SpawnToParent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement