19 lines
413 B
C#
19 lines
413 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using Sirenix.OdinInspector;
|
||
|
using System.IO;
|
||
|
namespace BITKit
|
||
|
{
|
||
|
public class ReadFile : MonoBehaviour
|
||
|
{
|
||
|
[FilePath(AbsolutePath = true)]
|
||
|
public string path;
|
||
|
public Provider output;
|
||
|
[Button]
|
||
|
public void Excute()
|
||
|
{
|
||
|
output.Set(File.ReadAllText(path));
|
||
|
}
|
||
|
}
|
||
|
}
|