update
This commit is contained in:
25
Assets/Script/GameManager.cs
Normal file
25
Assets/Script/GameManager.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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!....");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user