2021-03-22 19:20:51 +08:00
|
|
|
|
using Mapbox.Directions;
|
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
2021-03-23 16:07:31 +08:00
|
|
|
|
namespace Assets.Scenes.Ride.Scripts
|
2021-03-22 19:20:51 +08:00
|
|
|
|
{
|
2021-03-23 16:07:31 +08:00
|
|
|
|
public class PlayerFactory : MonoBehaviour
|
2021-03-22 19:20:51 +08:00
|
|
|
|
{
|
2021-03-23 16:07:31 +08:00
|
|
|
|
[SerializeField]
|
|
|
|
|
|
public GameObject _playerPrefab;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
|
void Start()
|
2021-03-22 19:20:51 +08:00
|
|
|
|
{
|
2021-03-23 16:07:31 +08:00
|
|
|
|
if (_playerPrefab != null)
|
2021-03-22 19:20:51 +08:00
|
|
|
|
{
|
2021-03-23 16:07:31 +08:00
|
|
|
|
for (int i = 0; i < 100; i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
Instantiate(_playerPrefab, new Vector3(i, 1, 0), Quaternion.identity);
|
|
|
|
|
|
}
|
2021-03-22 19:20:51 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|