コード例 #1
0
        public FishPondMasterRow GetRow(string in_RowString)
        {
            FishPondMasterRow ret = null;

            try
            {
                ret = Rows[(int)System.Enum.Parse(typeof(rowIds), in_RowString)];
            }
            catch (System.ArgumentException) {
                Debug.LogError(in_RowString + " is not a member of the rowIds enumeration.");
            }
            return(ret);
        }
コード例 #2
0
        public FishPondMasterRow GetRow(rowIds in_RowID)
        {
            FishPondMasterRow ret = null;

            try
            {
                ret = Rows[(int)in_RowID];
            }
            catch (System.Collections.Generic.KeyNotFoundException ex)
            {
                Debug.LogError(in_RowID + " not found: " + ex.Message);
            }
            return(ret);
        }