revival/game/Assets/Scripts/Artefacts/ArtefactPreview.cs

17 lines
430 B
C#
Raw Normal View History

2021-03-11 14:31:35 +01:00
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 );
}
}