Example #1
0
 // Use this for initialization
 void Awake()
 {
     UnityEngine.Random.seed = 0;
     Application.runInBackground = true;
     endTimer = new Timer(120f);
     waitTimer = new Timer(8f);
     billboard = (BillBoardRenderer)Object.FindObjectOfType(typeof(BillBoardRenderer));
     fullscreenSelectionUI = GameObject.Find("FullscreenSelectionUI").GetComponent<Canvas>();
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        fields = transform.Find("Fields/Viewport/Content/Text").GetComponent<Text>();
        background = transform.Find("Background").gameObject;
        spriteModel = GameObject.Find("StaticSpriteModel-Mono").GetComponent<SpriteModel>();
        billBoardRenderer = GameObject.Find("StaticSpriteModel-Mono/BillboardRenderer").GetComponent<BillBoardRenderer>();
        progressBar = transform.Find("ProgressBar").GetComponent<Slider>();

        frameSelector = transform.Find("FrameSelector").gameObject;
        frameButtons = new List<Button>();
        frameButtons.Add(frameSelector.transform.Find("Button").GetComponent<Button>());
        frameButtons[0].GetComponent<FrameButton>().Index = 0;
        Enable(false);

        isTestMode = GameObject.Find("TestMode") != null;
    }
Example #3
0
 void Start()
 {
     inputManager = GameObject.Find("InputManager").GetComponent<InputManager>();
     bbRenderer = transform.Find("BillboardRenderer").GetComponent<BillBoardRenderer>();
 }