|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
using SK.Framework;
|
|
|
|
|
|
public class TestA : ISingleton
|
|
{
|
|
public string myStr;
|
|
|
|
public void OnInit()
|
|
{
|
|
myStr = "Test";
|
|
}
|
|
|
|
public void Func()
|
|
{
|
|
Debug.Log("Singleton Example.");
|
|
}
|
|
|
|
}
|