using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// --[]--
/// </summary>
public class Test: MonoBehaviour
{
/// <summary>
/// ----
/// </summary>
void Start ()
{
NewBehaviourScript.GetInstance().Test();
}
void Update()
{
if (Input.GetMouseButtonDown(0))
{
PoolManager.GetInstance().Getobj("Prefabs/Cube");
}
if (Input.GetMouseButtonDown(1))
{
PoolManager.GetInstance().Getobj("Prefabs/Sphere");
}
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// --[]--
/// </summary>
public class Destroyobj: MonoBehaviour
{
void OnEnable()
{
Invoke("Push",1);
}
void Push()
{
PoolManager.GetInstance().Pushobj(this.gameObject.na