17 lines
430 B
C#
17 lines
430 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Security.Cryptography;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class ArtefactPreview : MonoBehaviour
|
||
|
{
|
||
|
private GameObject _artefactInstance;
|
||
|
public void Preview( GameObject artefact )
|
||
|
{
|
||
|
if ( _artefactInstance )
|
||
|
Destroy( _artefactInstance );
|
||
|
|
||
|
_artefactInstance = Instantiate( artefact, transform );
|
||
|
}
|
||
|
}
|