Exemple #1
0
 private void Start()
 {
     m_instance = this;
     StartCoroutine(SetupMod());
     Load();
     GameHook.InjectStateHook(GameObject.Find("ITEMS"), "Save game", Save);
 }
Exemple #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);
        }