void Start() {
		if(instance == null) {
			instance = this;
		} else if(instance != this) {
			Destroy(this);
		}

		dict = new Dictionary<Enums.Arrows, Sprite>();
		for(int i = 0; i < types.Length; i++) {
			dict.Add(types[i],images[i]);
		}
	}
Esempio n. 2
0
    void Start()
    {
        if(instance == null) {
            instance = this;
        } else if(instance != this) {
            Destroy(this);
        }

        dict = new Dictionary<Enums.Arrows, Sprite>();
        for(int i = 0; i < types.Length; i++) {
            dict.Add(types[i],images[i]);
        }
    }