Example #1
0
        // Use this for initialization
        void Start()
        {
            knownFacts   = new List <string> ();
            unknownFacts = new List <string> (possibleFacts);

            boardManager = GameObject.Find("GameManager").GetComponent <BoardManager> ();
            notifManager = GameObject.Find("Notifications").GetComponent <NotificationsManager> ();

            statsRT = statsCanvas.GetComponent <RectTransform> ();

            int randomFirstIdx = Random.Range(0, firstNames.Length);
            int randomLastIdx  = Random.Range(0, lastNames.Length);

            monsterName = firstNames [randomFirstIdx] + lastNames [randomLastIdx];

            appetite = Random.Range(appetiteMinMax.x, appetiteMinMax.y);

            InvokeRepeating("Tick", 0f, 5f);
        }
 void Start()
 {
     notifManager = GameObject.Find ("Notifications").GetComponent<NotificationsManager> ();
 }
 void Start()
 {
     notifManager = GameObject.Find("Notifications").GetComponent <NotificationsManager> ();
 }
        void Start()
        {
            notifManager = GameObject.Find ("Notifications").GetComponent<NotificationsManager> ();
            actionPanelRect = actionPanel.GetComponent<RectTransform> ();
            resources = gameObject.GetComponent<ResourcesManager> ();
            alertManager = GameObject.Find ("AlertPanel").GetComponent<AlertPanelManager>();
            boardHolder = new GameObject ("Board").transform;

            alertManager.ClosePanel();
        }
        // Use this for initialization
        void Start()
        {
            knownFacts = new List<string> ();
            unknownFacts = new List<string> (possibleFacts);

            boardManager = GameObject.Find ("GameManager").GetComponent<BoardManager> ();
            notifManager = GameObject.Find ("Notifications").GetComponent<NotificationsManager> ();

            statsRT = statsCanvas.GetComponent<RectTransform> ();

            int randomFirstIdx = Random.Range (0, firstNames.Length);
            int randomLastIdx = Random.Range (0, lastNames.Length);

            monsterName = firstNames [randomFirstIdx] + lastNames [randomLastIdx];

            appetite = Random.Range (appetiteMinMax.x, appetiteMinMax.y);

            InvokeRepeating ("Tick", 0f, 5f);
        }