Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     playerSpawner         = GameObject.FindGameObjectWithTag("_Scene");
     topPlayerFinder       = playerSpawner.GetComponent <spawnPlayer>();
     player                = topPlayerFinder.topPlayer;
     spawnPlatformPosition = player.gameObject.transform.position;
 }
 public void Initialize()
 {
     playerSpawner         = GameObject.FindGameObjectWithTag("_Scene");
     topPlayerFinder       = playerSpawner.GetComponent <spawnPlayer>();
     player                = topPlayerFinder.topPlayer;
     spawnPlatformPosition = new Vector3(0, 0, 0);
     //SpawnPlatforms(0);
 }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     playerSpawner   = GameObject.FindGameObjectWithTag("_Scene");
     topPlayerFinder = playerSpawner.GetComponent <spawnPlayer>();
     player          = topPlayerFinder.topPlayer;
 }
 void Awake()
 {
     Instance = this;
 }