Example #1
0
 void Start()
 {
     mon    = gameObject.AddComponent <wave_controler> ();
     ts     = gameObject.AddComponent <hourglass_manager> ();
     fires  = gameObject.AddComponent <fire_manager> ();
     coins  = gameObject.AddComponent <coin_manager> ();
     things = gameObject.AddComponent <ThingsManager> ();
 }
Example #2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        fire_manager fv = (fire_manager)target;

        foldfv = EditorGUILayout.Foldout(foldfv, "fire_manager");

        if (foldfv)
        {
            EditorGUILayout.LabelField("cnt", fv.fireballs.Count + "");

            foreach (KeyValuePair <System.Guid, fireball> kp in fv.fireballs)
            {
                EditorGUILayout.ObjectField(kp.Key + "", kp.Value.target, typeof(GameObject));
            }
        }

        EditorUtility.SetDirty(target);
    }