コード例 #1
0
    private void Awake()
    {
        objectsInHierarchy = transform.GetChild(0).transform;
        active             = objectsInHierarchy.GetChild(0).transform;

        spawningPoints = GameObject.FindGameObjectWithTag("SpawnManagers").GetComponent <SpawningPoints>();

        CreatePool();
    }
コード例 #2
0
 private void Awake()
 {
     gameManager    = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>();
     spawningPoints = GameObject.FindGameObjectWithTag("SpawnManagers").GetComponent <SpawningPoints>();
     SpawnCars();
 }