コード例 #1
0
ファイル: ModBehaviour.cs プロジェクト: RedJohn260/MSC-Mods
 private void Start()
 {
     m_instance = this;
     StartCoroutine(SetupMod());
     Load();
     GameHook.InjectStateHook(GameObject.Find("ITEMS"), "Save game", Save);
 }
コード例 #2
0
        void Start()
        {
            m_trigger = transform.FindChild("Trigger").GetComponent <MeshCollider>();
            m_sponge  = transform.FindChild("Sponge").gameObject;

            gameObject.name  = "Bucket with sponge(Clone)";
            gameObject.layer = LayerMask.NameToLayer("Parts");
            gameObject.tag   = "PART";

            m_guiUseBool     = PlayMakerGlobals.Instance.Variables.FindFsmBool("GUIuse");
            m_guiInteraction = PlayMakerGlobals.Instance.Variables.FindFsmString("GUIinteraction");

            Load();
            GameHook.InjectStateHook(GameObject.Find("ITEMS"), "Save game", Save);
        }