示例#1
0
 void Awake()
 {
     globalVars           = GlobalVars.Instance;
     serializer           = DelayGramSerializer.Instance;
     notificationObjects  = new List <GameObject>();
     dateHeaderObjects    = new List <GameObject>();
     pendingNotifications = new Queue <int>();
 }
示例#2
0
 // 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.
 }
示例#3
0
    // 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;
 }
示例#5
0
    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();
    }
示例#6
0
    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 = "";
        }
    }
示例#8
0
 void Awake()
 {
     soundController = GameObject.Find("SoundController").GetComponent <SoundController>();
     serializer      = DelayGramSerializer.Instance;
 }
示例#9
0
 // Use this for initialization
 void Awake()
 {
     globalVars   = GlobalVars.Instance;
     dgSerializer = DelayGramSerializer.Instance;
 }
示例#10
0
    private int eventIndex;        // Index into event results

    // Use this for initialization
    void Start()
    {
        globalVars     = GlobalVars.Instance;
        serializer     = DelayGramSerializer.Instance;
        eventContainer = null;
    }