Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Commit

Permalink
Update ExampleMod to use OnLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlacewell committed Apr 20, 2019
1 parent 4219f6c commit 79217e3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions ExampleMod/Assets/ExampleMod/ExampleMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
public class ExampleMod : ModBehaviour
{
public GameObject prefab;
public ContentHandler Content { get; set; }
void Start()
public override void OnLoaded(ContentHandler contentHandler)
{
Debug.Log("Hello World!!???");

Expand All @@ -30,7 +29,7 @@ void Start()
Debug.Log("Found main canvas.");
}

var gobj = GameObject.Instantiate(prefab);
var gobj = Instantiate(prefab);
gobj.transform.SetParent(canvas.transform, false);
var tobj = gobj.transform.Find("Text");
var text = tobj.GetComponent<Text>();
Expand Down
Binary file modified ExampleMod/Assets/MultiMod/Editor/MultiMod.Cecil.dll
Binary file not shown.
Binary file modified ExampleMod/Assets/MultiMod/Editor/MultiMod.Editor.dll
Binary file not shown.
Binary file modified ExampleMod/Assets/MultiMod/MultiMod.Interface.dll
Binary file not shown.
Binary file modified ExampleMod/Assets/MultiMod/MultiMod.Shared.dll
Binary file not shown.
7 changes: 4 additions & 3 deletions ExampleMod/Assets/MultiMod/Resources/ExportSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ MonoBehaviour:
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -787286444, guid: e44e3718a34a0434ea385352814a461d, type: 3}
m_Script: {fileID: 168753087, guid: 210a97a1fb4e06b48b13f515f2188030, type: 3}
m_Name: ExportSettings
m_EditorClassIdentifier:
_author: MultiMod
_description: ExampleMod for MultiMod
_description:
_name: ExampleMod
_outputDirectory: B:/RoR2/MultiMod/build/multimod/mods
_outputDirectory: S:/SteamLibrary/steamapps/common/Risk of Rain 2/BepInEx/plugins/multimod/mods
_version: 0.0.1
_prefab: {fileID: 6496937122687186768, guid: 5eb8811b29cc7bf4ca0d5bd61dc1222a, type: 3}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 79217e3

Please sign in to comment.