示例#1
0
        // TODO: get this to reference string type
        // TODO: this class is being repeated twice
        private Color GetWeaponCellColor(WeaponType type)
        {
            UISettings uiSetting = GameManager.Instance.uiSettings;

            switch (type)
            {
            case WeaponType.Turrent:
                return(uiSetting.GetSpecifiedColor(CellColor.Red));

            case WeaponType.Laser:
                return(uiSetting.GetSpecifiedColor(CellColor.Green));

            case WeaponType.Launcher:
                return(uiSetting.GetSpecifiedColor(CellColor.Blue));
            }

            return(Color.gray);
        }