예제 #1
0
    // 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
    }
예제 #2
0
 private void Start()
 {
     uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
     nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
     nodePathChange  = nodePathManager.GetComponentInChildren <NodePathChange>();
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
     nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
 }
예제 #4
0
    // Update is called once per frame

    void Start()
    {
        //thisObjectsMaterial = this.gameObject.GetComponent<Renderer>().material;
        uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
        nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
    }