Exemple #1
0
        public override void Dispose()
        {
            if (this.IsDisposed)
            {
                return;
            }
            base.Dispose();

            foreach (Chessman unit in this.myChessmans.Values)
            {
                unit.Dispose();
            }

            this.myChessmans.Clear();

            Instance = null;
        }
Exemple #2
0
 public void Awake()
 {
     Instance = this;
 }