IEnumerator ShowAlertPanel(string title, string message = "") { //Debug.Log ("ShowAlertPanel: " + title); HomeScreenController home = GameObject.FindObjectOfType <HomeScreenController>(); // stage.GetComponent<Canvas>().referencePixelsPerUnit = 326; yield return(new WaitForSeconds(1.0f)); yield return(new WaitForEndOfFrame()); if (String.IsNullOrEmpty(message)) { message = "Your user information is incomplete. Make sure you have your user profile updated.\n\nPlease close window and restart again. "; } GameObject subScreen = (GameObject)Instantiate(Resources.Load("HomeScreen/AlertPanel")); yield return(subScreen); _alertPanel = subScreen.GetComponent <AlertPanel>(); _alertPanel.title.text = title; _alertPanel.description.text = message; _alertPanel.GetComponent <CanvasGroup>().alpha = 0; _alertPanel.gameObject.transform.SetParent(home.transform, false); _alertPanel.GetComponent <FadeMe>().startFadeIn(0.6f); }
public void setup(AIPersonalityType value, HomeScreenController controller) { this.homeScreenController = controller; this.value = value; Text myText = this.transform.GetChild(0).GetComponent <Text>(); myText.text = this.value.ToString(); }
void Awake() { globalVars = GlobalVars.Instance; serializer = DelayGramSerializer.Instance; homeController = GetComponent <HomeScreenController>(); profileController = GetComponent <DGProfileController>(); postController = GetComponent <PostScreenController>(); messagesController = GetComponent <MessagesScreenController>(); eventController = GetComponent <EventController>(); soundController = GameObject.Find("SoundController").GetComponent <SoundController>(); navigationButtons = transform.Find("DGNavigation").gameObject; currentPage = ""; var newMailText = transform.Find("DGNavigation").Find("NewMailText"); if (newMailText) { newMailText.GetComponent <TextMesh>().text = ""; } }
// Use this for initialization void Start() { MainCamera = Camera.main; CurrentScreenState = ScreenStates.MainMenu; notificationBar = GameObject.Find("notificationBar"); notification = GameObject.Find("Notification").GetComponent<notificationController>(); homeScreenController = GameObject.Find("HomeScreenBackground").GetComponent<HomeScreenController>(); }
public Organizer(OrganizerEntities context) { this.context = context; this.kbInput = new KeyboardInput(); this.homeScreen = new HomeScreenController(this.kbInput, context); }
public Organazer(OrganazerContext context) { this.context = context; this.kbInput = new KeyboardInput(); this.homeScreen = new HomeScreenController(context, this.kbInput); }
void Start() { Instance = this; }