Exemple #1
0
        private static void CreateBoop()
        {
            DestroyBoop();

            if (isStudio && !runInStudio.Value || !isStudio && !runInGame.Value)
            {
                return;
            }

            var scene = SceneManager.GetActiveScene();

            if (!isStudio && scene.name != "EditScene" && scene.name != "ADVScene" && scene.name != "SelectScene" && scene.name != "H")
            {
                return;
            }

            if (isStudio && scene.name != "Studio")
            {
                return;
            }

            cam = Camera.main;

            boop = new GameObject("BoopBepin");
            bc   = boop.AddComponent <BreastCollider>();
        }
Exemple #2
0
        private static void DestroyBoop()
        {
            if (boop != null)
            {
                Destroy(boop);
                boop = null;
            }

            if (bc != null)
            {
                Destroy(bc);
                bc = null;
            }
        }