Skip to content

Instantly share code, notes, and snippets.

@suakig
Created May 8, 2015 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suakig/7bc049c37db1023c90ae to your computer and use it in GitHub Desktop.
Save suakig/7bc049c37db1023c90ae to your computer and use it in GitHub Desktop.
TestSingletonFromResourcesTestCall.cs
using UnityEngine;
using System;
using System.Collections;
public class TestSingletonFromResourcesTestCall : MonoBehaviour
{
void Start ()
{
TestSingletonFromResources.instance.TestCall ();
Invoke ((Action)SceneMove, 1.0f);
}
void SceneMove()
{
Application.LoadLevel (Application.loadedLevel);
}
public void Invoke(Action action, float time)
{
Invoke (action.Method.Name, time);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment