// load raw file public static byte[] LoadRaw(string relativePath) { #if ASSETBUNDLE if (dependence_ == null) { LoadDependence(); // preload bundles LoadDefault(); } return(AutherFile.GetData(relativePath)); #else string path = UIPathManager.GetStreamPath() + relativePath; if (File.Exists(path)) { FileStream fs = File.OpenRead(path); int length = (int)fs.Length; byte[] data = new byte[length]; fs.Read(data, 0, length); fs.Close(); return(data); } else { return(null); } #endif }
private void Start() { uiPathManager = transform.parent.GetComponentInParent <UIPathManager>(); nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>(); nodePathChange = nodePathManager.GetComponentInChildren <NodePathChange>(); }
// Start is called before the first frame update void Start() { uiPathManager = transform.parent.GetComponentInParent <UIPathManager>(); nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>(); }
// Update is called once per frame void Start() { //thisObjectsMaterial = this.gameObject.GetComponent<Renderer>().material; uiPathManager = transform.parent.GetComponentInParent <UIPathManager>(); nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>(); }