void Awake() { globalVars = GlobalVars.Instance; serializer = DelayGramSerializer.Instance; notificationObjects = new List <GameObject>(); dateHeaderObjects = new List <GameObject>(); pendingNotifications = new Queue <int>(); }
// Use this for initialization void Start() { globalVars = GlobalVars.Instance; dgSerializer = DelayGramSerializer.Instance; thumbnailsList = GetComponent <ThumbnailsList>(); oldFollowerCount = dgSerializer.Followers; dgSerializer.RegisterFollowersListener(this); messagesSerializer = MessagesSerializer.Instance; // oldFollowerCount = globalVars. }
// Use this for initialization void Awake() { globalVars = GlobalVars.Instance; serializer = DelayGramSerializer.Instance; soundController = GameObject.Find("SoundController").GetComponent <SoundController>(); newPostController = GetComponent <NewPostController>(); postObjects = new List <GameObject>(); checkUpdateRemainingTimer = -1.0f; }
void Awake() { serializer = DelayGramSerializer.Instance; eventController = GetComponent <EventController>(); soundController = GameObject.Find("SoundController").GetComponent <SoundController>(); FillHashTags(); currentClickCount = 0.0f; currentRandomEventCount = 1.0f; currentAnnoyance = 0; defaultAnnoyTimer = 0.3f; currentAnnoyTimer = defaultAnnoyTimer; }
public void EnterScreen() { serializer = DelayGramSerializer.Instance; postPage = GameObject.Instantiate(Resources.Load("Prefabs/SocialMedia/Posts/DGPostPage") as GameObject); postPage.transform.position = new Vector3(0.0f, 0.0f, 0.0f); scrollArea = postPage.transform.Find("ScrollArea").gameObject; if (serializer.NextPostTime > DateTime.Now) { ShowTimeRemaining(); } GeneratePostObjects(); }
void LoadState() { if (!gameLoaded) { globalVars = GlobalVars.Instance; dgSerializer = DelayGramSerializer.Instance; messagesSerializer = MessagesSerializer.Instance; var globalSaveFound = globalVars.LoadGame(); var dgsSaveFound = dgSerializer.LoadGame(); var messagesSaveFound = messagesSerializer.LoadGame(); if (!globalSaveFound || !dgsSaveFound || !messagesSaveFound) { loadMarketingGuy = true; } gameLoaded = true; } }
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 = ""; } }
void Awake() { soundController = GameObject.Find("SoundController").GetComponent <SoundController>(); serializer = DelayGramSerializer.Instance; }
// Use this for initialization void Awake() { globalVars = GlobalVars.Instance; dgSerializer = DelayGramSerializer.Instance; }
private int eventIndex; // Index into event results // Use this for initialization void Start() { globalVars = GlobalVars.Instance; serializer = DelayGramSerializer.Instance; eventContainer = null; }