示例#1
0
    void Start()
    {
        this.contractScript           = GameObject.Find("ContractPlayerFlow").GetComponent <ContractPlayerScript>();
        this.timerScript              = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
        this.blackScreen              = GameObject.Find("TradeBlackScreen");
        this.parentConfirmationScreen = GameObject.Find("ConfirmationScreen");
        foreach (var mesh in this.parentConfirmationScreen.GetComponentsInChildren <MeshRenderer>())
        {
            mesh.sortingLayerName = "TradeStuffs";
        }

        this.leftSide  = GameObject.Find("LeftSide");
        this.rightSide = GameObject.Find("RightSide");

        this.tradeText = GameObject.Find("TradeTextObject");
        this.tradeText.GetComponent <MeshRenderer>().sortingLayerName = "TradeStuffs";

        // SUPER UGLY LOLZ
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop1").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop2").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop3").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop4").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop5").GetComponent <TradePlayerSelectionScript>());

        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop6").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop7").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop8").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop9").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop10").GetComponent <TradePlayerSelectionScript>());

        // Extra 2 buttons in case of giving up keepers
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop11").GetComponent <TradePlayerSelectionScript>());
        tradePlayerSelectionScriptList.Add(GameObject.Find("TradeBackdrop12").GetComponent <TradePlayerSelectionScript>());
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        // Set current sprite to pause sprites
        currentSprite      = pauseSprite;
        currentHoverSprite = pauseHoverSprite;

        timerScript = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     timerScript       = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
     rectTransform     = GetComponent <RectTransform>();
     textComponent     = GetComponent <Text>();
     canvasScaleFactor = GetComponentInParent <Canvas>().scaleFactor;
     hiddenPosition    = rectTransform.position;
     hiddenPosition.y  = -20;
 }
示例#4
0
    // Use this for initialization
    void Start()
    {
        currentYValue          = threeYearPickYValue;
        timerScript            = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
        contractDrafterIndex   = (int)DrafterEnum.TotalDrafters - 1;
        currentContractDrafter = timerScript.DraftOrder[contractDrafterIndex];

        currentLabelText = "Signing Open Contracts: " + timerScript.DrafterNames[(int)currentContractDrafter];
    }
    public void UpdatePlayersMatched()
    {
        if (!timerScript)
        {
            timerScript = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
        }

        int numMatches = timerScript.playerDatabase.NumMatchingPlayers(gameObject.GetComponent <InputField>().text);

        // Player Found
        if (numMatches == 1)
        {
            checkMarkObject.GetComponent <SpriteRenderer>().sprite = singleCheckMark;
        }
        else if (numMatches == 0)
        {
            checkMarkObject.GetComponent <SpriteRenderer>().sprite = redXMark;
        }
        else
        {
            checkMarkObject.GetComponent <SpriteRenderer>().sprite = multipleCheckMarks;
        }
    }
 // Use this for initialization
 void Start()
 {
     timerScript = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
 }
示例#7
0
 // Use this for initialization
 void Start()
 {
     tradeButtonScript = GameObject.Find("TradeButton").GetComponent <TradeButton>();
     timerScript       = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
 }
示例#8
0
 // Initialize this nameplate for the given drafter
 public void InitializeVariables(DrafterEnum drafter)
 {
     timerScript = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
     drafterID   = drafter;
     this.GetComponent <SpriteRenderer>().sprite = timerScript.nameplateSprites[(int)drafterID];
 }
    // Use this for initialization
    void Start()
    {
        timerScript = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();

        stringsList = new List <StatsStrings>();
    }
示例#10
0
 // Use this for initialization
 void Start()
 {
     timerScript  = GameObject.Find("DraftTimer").GetComponent <DraftTimerScript>();
     breakingNews = GameObject.Find("BreakingNews").GetComponent <BreakingNewsScript>();
 }