コード例 #1
0
ファイル: Projector.cs プロジェクト: zrisher/ARMS
        private void RestoreColour(SeenHolo sh)
        {
            Log.DebugLog("restoring original colour: " + sh.Seen.Entity.getBestName());
            MyCubeGrid realGrid = (MyCubeGrid)sh.Seen.Entity;
            MyCubeGrid holo     = (MyCubeGrid)sh.Holo;

            foreach (IMySlimBlock block in realGrid.CubeBlocks)
            {
                holo.ColorBlocks(block.Position, block.Position, block.GetColorMask(), false);
            }
            sh.ColouredByIntegrity = false;
        }