This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class AddScriptToEachChild : MonoBehaviour { | |
public float changeValueOfScript = 10.0f; | |
void Start () { | |
foreach (Transform child in transform) { | |
AttachScript(child.gameObject); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if UNITY_EDITOR | |
// You'll need to include compiler conditions to only compile this if this is going through the Unity Editor, otherwise, you will not be able to compile a Build! | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using System.IO; | |
using System.Diagnostics; | |
public class LaunchDuplicator : EditorWindow { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if UNITY_EDITOR | |
using UnityEditor; | |
using System.Diagnostics; | |
using UnityEngine; | |
using System.IO.Compression; | |
using System.IO; | |
using Ionic.Zip; | |
public class BuildBuddy : MonoBehaviour { | |
[MenuItem("Pollati Rules!/Build Buddy")] |