Created
May 8, 2015 16:07
-
-
Save suakig/914ed86a9ed89ef30af5 to your computer and use it in GitHub Desktop.
TestSingletonFromResources.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.Collections; | |
public class TestSingletonFromResources : MonoSingletonFromResources<TestSingletonFromResources> | |
{ | |
public int data1; | |
public int data2; | |
public int data3; | |
public int data4; | |
public override void OnInitialize() | |
{ | |
DontDestroyOnLoad(this.gameObject); | |
Debug.Log ( "TestSingletonFromResources#OnInitialize" ); | |
} | |
public override void OnFinalize() | |
{ | |
Debug.Log ( "TestSingletonFromResources#OnFinalize" ); | |
} | |
public void TestCall() | |
{ | |
Debug.Log ("TestSingletonFromResources#TestCall"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment