private void ChangeScale(ScaleType newScale) { var localScale = this.transform.localScale; // verifica se houve mudanca de Scala no Eixo X if (!this.currentScaleType.Equals(newScale)) { localScale.x = newScale.GetHashCode(); this.transform.localScale = localScale; this.currentScaleType = newScale; } }
public override int GetHashCode() { return(ScaleType.GetHashCode() ^ Increment.GetHashCode() ^ Orientation.GetHashCode()); }
public Dictionary <string, object> ToDictionary() { Dictionary <string, object> result = new Dictionary <string, object>(); result["workID"] = workID; result["contractType"] = contractType.GetHashCode(); result["scaleType"] = scaleType.GetHashCode(); Dictionary <string, object> result_genreDatas = new Dictionary <string, object>(); for (int i = 0; i < genreDatas.Count; i++) { result_genreDatas.Add(i + "", genreDatas[i].ToDictionary()); } result["genreDatas"] = result_genreDatas; Dictionary <string, object> result_themeDatas = new Dictionary <string, object>(); for (int i = 0; i < themeDatas.Count; i++) { result_themeDatas.Add(i + "", themeDatas[i].ToDictionary()); } result["themeDatas"] = result_themeDatas; Dictionary <string, object> result_cameraDatas = new Dictionary <string, object>(); for (int i = 0; i < cameraDatas.Count; i++) { result_cameraDatas.Add(i + "", cameraDatas[i].ToDictionary()); } result["cameraDatas"] = result_cameraDatas; Dictionary <string, object> result_graphicDatas = new Dictionary <string, object>(); for (int i = 0; i < graphicDatas.Count; i++) { result_graphicDatas.Add(i + "", graphicDatas[i].ToDictionary()); } result["graphicDatas"] = result_graphicDatas; Dictionary <string, object> result_platformDatas = new Dictionary <string, object>(); for (int i = 0; i < platformDatas.Count; i++) { result_platformDatas.Add(i + "", platformDatas[i].ToDictionary()); } result["platformDatas"] = result_platformDatas; Dictionary <string, object> result_featureDatas = new Dictionary <string, object>(); for (int i = 0; i < featureDatas.Count; i++) { result_featureDatas.Add(i + "", featureDatas[i].ToDictionary()); } result["featureDatas"] = result_featureDatas; result["dueDate"] = dueDate.ToDictionary(); result["reward"] = reward.ToDictionary(); result["fine"] = fine.ToDictionary(); Dictionary <string, object> result_employee_Worker = new Dictionary <string, object>(); for (int i = 0; i < employee_Worker.Count; i++) { result_employee_Worker.Add(i + "", employee_Worker[i]); } result["employee_Worker"] = result_employee_Worker; result["processCurrent"] = processCurrent; result["processMax"] = processMax; result["contractStatus"] = contractStatus.GetHashCode(); return(result); }