Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Fungus-Light committed May 21, 2021
1 parent c2dcf66 commit 240b550
Show file tree
Hide file tree
Showing 29 changed files with 1,015 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,58 +49,58 @@ void Update()
}
}

void OnTriggerEnter2D(Collider other)
{
if (isUseful)
{
if (other.tag == PlayerTag && this.GameType == GameType.TPS)
{
MakeInterActable();
}
// void OnTriggerEnter2D(Collider other)
// {
// if (isUseful)
// {
// if (other.tag == PlayerTag && this.GameType == GameType.TPS)
// {
// MakeInterActable();
// }

if (this.GameType == GameType.TPS)
{
foreach (string key in EnterAct.Keys)
{
if (key == other.tag)
{
EnterAct[key]();
}
}
}
// if (this.GameType == GameType.TPS)
// {
// foreach (string key in EnterAct.Keys)
// {
// if (key == other.tag)
// {
// EnterAct[key]();
// }
// }
// }

}
else
{
interActable = false;
}
// }
// else
// {
// interActable = false;
// }

}
// }

void OnTriggerExit2D(Collider other)
{
if (isUseful)
{
if (other.tag == PlayerTag && this.GameType == GameType.TPS)
{
MakeDisInterActable();
}
// void OnTriggerExit2D(Collider other)
// {
// if (isUseful)
// {
// if (other.tag == PlayerTag && this.GameType == GameType.TPS)
// {
// MakeDisInterActable();
// }

if (this.GameType == GameType.TPS)
{
foreach (string key in LeaveAct.Keys)
{
if (key == other.tag)
{
LeaveAct[key]();
}
}
}
// if (this.GameType == GameType.TPS)
// {
// foreach (string key in LeaveAct.Keys)
// {
// if (key == other.tag)
// {
// LeaveAct[key]();
// }
// }
// }

}
else
{
interActable = false;
}
}
// }
// else
// {
// interActable = false;
// }
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ void Awake()
this.GetComponent<Collider>().isTrigger = true;
}

void OnTriggerEnter2D(Collider other)
{
if (isUseful)
{
foreach (string key in EnterAct.Keys)
{
if (key == other.tag)
{
EnterAct[key]();
}
}
}

}

void OnTriggerExit2D(Collider other)
{
if (isUseful)
{
foreach (string key in LeaveAct.Keys)
{
if (key == other.tag)
{
LeaveAct[key]();
}
}
}
}
// void OnTriggerEnter2D(Collider other)
// {
// if (isUseful)
// {
// foreach (string key in EnterAct.Keys)
// {
// if (key == other.tag)
// {
// EnterAct[key]();
// }
// }
// }

// }

// void OnTriggerExit2D(Collider other)
// {
// if (isUseful)
// {
// foreach (string key in LeaveAct.Keys)
// {
// if (key == other.tag)
// {
// LeaveAct[key]();
// }
// }
// }
// }

void Update()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ MonoBehaviour:
m_Name: DebugModConfig
m_EditorClassIdentifier:
Packs:
- PackName: JS
Mods:
- LevelLoader
- GameEntrance
- PackName: Game
Mods:
- DialogModDemo
- FeatureScene
- SelectLevel
- TweenAnimShow
- helloworld
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void Awake()
{
if (ENVDebugConfig.instance == null)
{
GameObject go = Resources.Load("Core/DebugConfig") as GameObject;
GameObject go = Resources.Load("DebugConfig") as GameObject;
GameObject.Instantiate(go);
}

Expand Down Expand Up @@ -63,7 +63,7 @@ void RunScript()
loader.SetLevel('{LevelModName}',level)
return loader;
"
+ "})();", ModName);
+ "})();", ModName+":Runner");

var Init = env.Eval<LoaderInit>("loader.Init");
if (Init != null)
Expand Down
Loading

0 comments on commit 240b550

Please sign in to comment.