Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     text = GetComponent<OTTextSprite>();
     sizer.BoundBy(bound);
     sizer.onDragging = SizerDrag;
     window.dirtyChecks = true;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     text = GetComponent <OTTextSprite>();
     sizer.BoundBy(bound);
     sizer.onDragging   = SizerDrag;
     window.dirtyChecks = true;
 }
Exemplo n.º 3
0
    // ********************************************************************
    // Function:	Start()
    // Purpose:     Run when new instance of the object is created.
    // ********************************************************************
    void Start()
    {
        // Get parent button
        m_parentButton = transform.parent.GetComponent<Button>();

        // Get text sprite
        m_textSprite = GetComponent<OTTextSprite>();
    }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     text = GetComponent <OTTextSprite>();
     Fill();
 }
Exemplo n.º 5
0
	// Use this for initialization
	void Start () {
		text = GetComponent<OTTextSprite>();
	}
    /// <summary>
    /// Variables initialization.
    /// </summary>
    void Awake()
    {
        m_txtSpr_Win 				 = GameObject.Find ("Win_Digital_Sprite").GetComponent<OTTextSprite>();
        m_txtSpr_Bet 		 		 = GameObject.Find ("Bet_Digital_Sprite").GetComponent<OTTextSprite>();
        m_txtSpr_Credit 	 		 = GameObject.Find ("Credit_Digital_Sprite").GetComponent<OTTextSprite>();
        m_txtSpr_Win_Cash	 = GameObject.Find ("Win_Cash_Sprite").GetComponent<OTTextSprite>();
        m_txtSpr_Bet_Cash 	 = GameObject.Find ("Bet_Cash_Sprite").GetComponent<OTTextSprite>();
        m_txtSpr_Credit_Cash  = GameObject.Find ("Credit_Cash_Sprite").GetComponent<OTTextSprite>();
        m_txtSpr_Message_1	 = GameObject.Find ("Text_Message_Sprite_1").GetComponent<OTTextSprite>();
        m_txtSpr_Message_2 	 = GameObject.Find ("Text_Message_Sprite_2").GetComponent<OTTextSprite>();
        m_textSpr_Ediotr 		 = GameObject.Find ("Text_Message_Sprite_Editor").GetComponent<OTTextSprite> ();

        m_IsCountEnd = false;
        m_Counter = 0;
        // Scale down in non-mobile platform
        if (Application.platform != RuntimePlatform.Android)
        {
            m_txtSpr_Message_1.size = new Vector2(0.8f, 0.8f);
            m_txtSpr_Message_2.size = new Vector2(0.8f, 0.8f);
        }

        m_txtSpr_Message_2.text  = "INSERT CREDITS";
        SetWinAmount(0);
        SetBetAmount(0);
        SetCreditAmount(0);
    }
    public void GenerateButtons()
    {
        m_spriteButtonBetLine = GameObject.Find ("Button_BetBar_Sprite").GetComponent<OTSprite> ();
        m_spriteButtonBetLineLabel = GameObject.Find ("Button_BetLabel_Sprite").GetComponent<OTSprite> ();
        m_spriteButtonPlayLine = GameObject.Find ("Button_PlayLineBar_Sprite").GetComponent<OTSprite> ();
        m_spriteButtonPlayLineLabel = GameObject.Find ("Button_PlayLineLabel_Sprite").GetComponent<OTSprite> ();
        m_textButtonBetLine = GameObject.Find ("Button_BetText_Sprite").GetComponent<OTTextSprite> ();
        m_textButtonPlayLine = GameObject.Find ("Button_PlaylineText_Sprite").GetComponent<OTTextSprite> ();

        m_iCurBetLineOption = 0;
        m_iCurPlayLineOption = 4;

        float fScaleFactor = 1.0f;
        m_spriteButtonBetLine.size = m_spriteButtonBetLine.size * fScaleFactor;
        m_spriteButtonBetLineLabel.size = m_spriteButtonBetLineLabel.size * fScaleFactor;
        m_spriteButtonPlayLine.size = m_spriteButtonPlayLine.size * fScaleFactor;
        m_spriteButtonPlayLineLabel.size = m_spriteButtonPlayLineLabel.size * fScaleFactor;
        m_textButtonBetLine.size = m_textButtonBetLine.size * fScaleFactor;
        m_textButtonPlayLine.size = m_textButtonPlayLine.size * fScaleFactor;

        UpdateOptionsAndText ();
    }