26 lines
628 B
C#
26 lines
628 B
C#
using UnityEngine;
|
|
using Vuforia;
|
|
|
|
public class GameManager : MonoBehaviour
|
|
{
|
|
[Header("Cấu hình cho game")]
|
|
public GameObject charaterPrefab;
|
|
|
|
public GameObject environmentPrefab;
|
|
public GameObject imageTarget;
|
|
|
|
public void OntargetFound()
|
|
{
|
|
Debug.Log("Target found!....");
|
|
var template = Instantiate(environmentPrefab, imageTarget.transform.position, Quaternion.identity,
|
|
imageTarget.transform);
|
|
//var player = Instantiate(charaterPrefab, imageTarget.transform.position);
|
|
|
|
}
|
|
|
|
public void OnTargetLost()
|
|
{
|
|
Debug.Log("Target lost!....");
|
|
}
|
|
}
|