init
This commit is contained in:
21
Assets/AdManager/adInitialize.cs
Normal file
21
Assets/AdManager/adInitialize.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class adInitialize : MonoBehaviour
|
||||
{
|
||||
public Object AdManagerPrefb;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
GameObject Ads=GameObject.Find("AdManager(Clone)");
|
||||
if(Ads==null)
|
||||
Ads=Instantiate(AdManagerPrefb) as GameObject;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user