-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJuneConfig.cs
More file actions
22 lines (20 loc) · 838 Bytes
/
JuneConfig.cs
File metadata and controls
22 lines (20 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* See the copyright information at https://github.com/srfoster/June/blob/master/COPYRIGHT */
using UnityEngine;
using System.Collections;
public class JuneConfig : MonoBehaviour {
public static string java_files_path = "";
public static string june_files_path = "";
void Awake(){
if(Application.isEditor)
{
java_files_path = Application.dataPath + "/Vendor/CodeSpells/CodeSpellsJava";
june_files_path = Application.dataPath + "/Vendor/June/Java/bin";
} else {
//After deployment, the the directories /Vendor/June/MyJune/ and /Vendor/June/ are
// moved to the root directory of the unity executable.
// This is done by the Editor/PostprocessBuildPlayer script
java_files_path = Application.dataPath + "/../../CodeSpellsJava";
june_files_path = Application.dataPath + "/../../June/Java/bin";
}
}
}