Пример #1
0
	public void RemoveButton (SelledProject selledProject) {
		List<Transform> childList = mGrid.GetChildList ();
		foreach (Transform child in childList) {
			AddQuizButtonController controller = child.GetComponent<AddQuizButtonController> ();
			string title = controller.GetTitle ();
			if (title == selledProject.title) {
				Destroy (child.gameObject);
				break;
			}
		}
		mGrid.repositionNow = true;
	}
Пример #2
0
	public static void Show (SelledProject addQuiz, int userPoint) {
		string quizTitle = addQuiz.title;
		string title = "\u6240\u6301pt : " + userPoint + "pt";
		string message = quizTitle + "を" + addQuiz.point + "pt\u3067\u8ffd\u52a0\u3057\u307e\u3059\u304b\uff1f";
		string positiveButton = "\u306f\u3044";
		string negativeButton = "\u3044\u3044\u3048";
#if UNITY_IPHONE
		string[] buttons = { positiveButton, negativeButton };
		EtceteraBinding.showAlertWithTitleMessageAndButtons (title, message, buttons);
#endif

		#if UNITY_ANDROID
		EtceteraAndroid.showAlert(title,message,positiveButton,negativeButton);
		#endif
	}
	public void Init (List<SelledProject> selledProjectList) {
		if (mGrid == null) {
			mGrid = GetComponentInParent<UIGrid> ();
		}
	
		int index = mGrid.GetIndex (transform);
		if(index >= selledProjectList.Count){
			Destroy (gameObject);
			return;
		}
		mSelledProject = selledProjectList [index];
		titleLabel.text = mSelledProject.title + "\n" + mSelledProject.quiz_count + "問)";
		pointLabel.text = mSelledProject.point + "pt";
		if (logoTexture.mainTexture == null) {
		//	LoadTexture ();
		}
	}
Пример #4
0
	public void RemoveButton(SelledProject selledProject){
		foreach(AddQuizGrid grid in mAddQuizGridArray){
			grid.RemoveButton (selledProject);
		}
	}