Created
May 8, 2015 16:10
-
-
Save suakig/7bc049c37db1023c90ae to your computer and use it in GitHub Desktop.
TestSingletonFromResourcesTestCall.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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