private static void PlayConstantOff() { var tempObj = Selection.activeGameObject; var tempS = GameObjectUtils.FindComponent <HighlightableObject>(tempObj); if (tempS != null) { tempS.ConstantOff(); } }
public void SetBookContent(string text) { if (mTempText == null) { mTempText = GameObjectUtils.FindComponent <Text>(gameObject, "TempCanvas/Text"); } List <string> tempList = GetGontent(mTempText, text); mBook = new Book(tempList.Count); for (int i = 0; i < tempList.Count; i++) { mBook.SetPageContent(i, tempList[i]); } }