Skip to content

Commit

Permalink
add method with old signature for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantMohta committed Oct 14, 2021
1 parent 7f0c215 commit c598649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Satchel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<VanillaFiles>.\Vanilla</VanillaFiles>
<VanillaFiles>..\Vanilla</VanillaFiles>
<ModdingAPi>..\HollowKnight.Modding\OutputFinal</ModdingAPi>
<HollowKnightModsDirectory>..\linkedtoHKMods</HollowKnightModsDirectory>
</PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion Utils/EnemyUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public Convo(string convId){
}
public static class EnemyUtils{


public static GameObject createCompanionFromPrefab(this GameObject CompanionPrefab){
return CompanionPrefab.createCompanionFromPrefab(false);
}
public static GameObject createCompanionFromPrefab(this GameObject CompanionPrefab,bool DestroyOnLoad = false){
GameObject Companion = GameObject.Instantiate(CompanionPrefab);
Companion.name = "Companion";
Expand Down

0 comments on commit c598649

Please sign in to comment.