Skip to content
Snippets Groups Projects
Select Git revision
  • 1505a793fd80d97ad52ffa53f7dcefea912aaeeb
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

GlobalBehaviour.cs

  • PythagorasScript.cs 678 B
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class PythagorasScript : MonoBehaviour
    {
        private Dictionary<string, ItemObject> items = new Dictionary<string, ItemObject>();
    
        public void putItem(string name, ItemObject obj) {
            if (this.items.ContainsKey(name)) {
                this.items.Remove(name);
            }
            this.items.Add(name, obj);
        }
    
        public void doMagic() {
            Dictionary<string, ItemObject>.Enumerator enumerator = this.items.GetEnumerator();
            while (enumerator.MoveNext()){
                Debug.Log(enumerator.Current.Key + " is mapped to " + enumerator.Current.Value);
            }
        }
    }