mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-30 04:27:09 +01:00
13 lines
309 B
C#
13 lines
309 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class SelectBuilding : MonoBehaviour
|
|
{
|
|
public GameObject select;
|
|
public void Select(GameObject select)
|
|
{
|
|
GameObject.Find("FirstPerson Player").GetComponent<BuildingPlacement>().prefab = select;
|
|
}
|
|
}
|