Make warnings disappear
This commit is contained in:
@@ -32,11 +32,13 @@ public class CanvasSampleOpenFileImage : MonoBehaviour, IPointerDownHandler {
|
||||
//
|
||||
public void OnPointerDown(PointerEventData eventData) { }
|
||||
|
||||
[System.Obsolete]
|
||||
void Start() {
|
||||
var button = GetComponent<Button>();
|
||||
button.onClick.AddListener(OnClick);
|
||||
}
|
||||
|
||||
[System.Obsolete]
|
||||
private void OnClick() {
|
||||
var paths = StandaloneFileBrowser.OpenFilePanel("Title", "", ".png", false);
|
||||
if (paths.Length > 0) {
|
||||
@@ -45,6 +47,7 @@ public class CanvasSampleOpenFileImage : MonoBehaviour, IPointerDownHandler {
|
||||
}
|
||||
#endif
|
||||
|
||||
[System.Obsolete]
|
||||
private IEnumerator OutputRoutine(string url) {
|
||||
var loader = new WWW(url);
|
||||
yield return loader;
|
||||
|
||||
@@ -32,11 +32,13 @@ public class CanvasSampleOpenFileText : MonoBehaviour, IPointerDownHandler {
|
||||
//
|
||||
public void OnPointerDown(PointerEventData eventData) { }
|
||||
|
||||
[System.Obsolete]
|
||||
void Start() {
|
||||
var button = GetComponent<Button>();
|
||||
button.onClick.AddListener(OnClick);
|
||||
}
|
||||
|
||||
[System.Obsolete]
|
||||
private void OnClick() {
|
||||
var paths = StandaloneFileBrowser.OpenFilePanel("Title", "", "txt", false);
|
||||
if (paths.Length > 0) {
|
||||
@@ -45,6 +47,7 @@ public class CanvasSampleOpenFileText : MonoBehaviour, IPointerDownHandler {
|
||||
}
|
||||
#endif
|
||||
|
||||
[System.Obsolete]
|
||||
private IEnumerator OutputRoutine(string url) {
|
||||
var loader = new WWW(url);
|
||||
yield return loader;
|
||||
|
||||
@@ -32,11 +32,13 @@ public class CanvasSampleOpenFileTextMultiple : MonoBehaviour, IPointerDownHandl
|
||||
//
|
||||
public void OnPointerDown(PointerEventData eventData) { }
|
||||
|
||||
[System.Obsolete]
|
||||
void Start() {
|
||||
var button = GetComponent<Button>();
|
||||
button.onClick.AddListener(OnClick);
|
||||
}
|
||||
|
||||
[System.Obsolete]
|
||||
private void OnClick() {
|
||||
// var paths = StandaloneFileBrowser.OpenFilePanel("Title", "", "txt", true);
|
||||
var paths = StandaloneFileBrowser.OpenFilePanel("Open File", "", "", true);
|
||||
@@ -50,6 +52,7 @@ public class CanvasSampleOpenFileTextMultiple : MonoBehaviour, IPointerDownHandl
|
||||
}
|
||||
#endif
|
||||
|
||||
[System.Obsolete]
|
||||
private IEnumerator OutputRoutine(string[] urlArr) {
|
||||
var outputText = "";
|
||||
for (int i = 0; i < urlArr.Length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user