示例#1
0
        public virtual void Set(RegionCore region)
        {
            this.Region = region;

            icon.sprite = region.Icon;

            UpdateState();
        }
示例#2
0
        public virtual void Set(RegionCore data)
        {
            this.Region = data;

            Levels.Set(data);

            UpdateState();

            Show();
        }
示例#3
0
        public virtual void Set(RegionCore region)
        {
            Clear();

            for (int i = 0; i < region.Size; i++)
            {
                var instance = Create(region[i], i);

                Templates.Add(instance);
            }
        }
示例#4
0
        public int IndexOf(RegionCore region)
        {
            for (int i = 0; i < regions.Length; i++)
            {
                if (regions[i] == region)
                {
                    return(i);
                }
            }

            throw new ArgumentException();
        }
示例#5
0
 public virtual void Set(RegionCore region)
 {
     this.Region = region;
 }
示例#6
0
        public void Set(RegionCore region)
        {
            this.Region = region;

            this.Index = region.IndexOf(this);
        }