/** * Default constructor. */ public ScoreRect() { m_type = ScoreRect.TYPE_UNASSIGNED; m_score = -1; m_scoreIcon = null; m_scoreIconAbsent = null; m_colorMap = null; m_frame = new Rect(); m_subRects = null; m_scoreIconFSM = new ScoreIconAuto(); m_imageBitmask = 0x00; }
/** * Instance constructor. */ public ScoreRect(string _type_, string _scoreIconPath_, string _scoreIconAbsentPath_) { m_type = _type_; m_score = 0; m_colorMap = new ColorMap(Application.dataPath + "/Config/hot_colormap_size_20.csv"); m_subRects = new Rect[NUM_SUBRECTS]; CalculateRects(); LoadScoreIcon(_scoreIconPath_, _scoreIconAbsentPath_); m_scoreIconFSM = new ScoreIconAuto(); m_imageBitmask = 0x00; }