mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2026-07-31 22:59:03 +02:00
idk
This commit is contained in:
12
Assets/Buildings/Scripts/UI/SelectBuilding.cs
Normal file
12
Assets/Buildings/Scripts/UI/SelectBuilding.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
11
Assets/Buildings/Scripts/UI/SelectBuilding.cs.meta
Normal file
11
Assets/Buildings/Scripts/UI/SelectBuilding.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07315fb4060a66e4b800f322b186d428
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user