コード例 #1
0
ファイル: Cell.cs プロジェクト: Vicktooor/OurGreatestChoices
        public void SetPolution(bool isPoluted)
        {
            bool lPoluted = _poluted;

            _poluted = isPoluted;
            if (lPoluted != isPoluted)
            {
                EarthManager.PoluteCell(_state, isPoluted);
                ChangeColor(isPoluted);
            }
        }
コード例 #2
0
ファイル: Cell.cs プロジェクト: Vicktooor/OurGreatestChoices
 public void ForcePolution(bool state)
 {
     _poluted = state;
     EarthManager.PoluteCell(_state, _poluted);
     ChangeColor(_poluted);
 }