1 using UnityEngine;
2 using
System.Collections;
3
4 public
class Difficulty_HUDController : MonoBehaviour {
5
6     
public GUIText ChooseDifficulty;
7     
// Use this for initialization
8     
void Start () {
9         
int scWidth = Screen.width;
10         
if (scWidth > 1200) ChooseDifficulty.fontSize = 140;
11         
else if (scWidth > 1500) ChooseDifficulty.fontSize = 250;
12     }
13     
14     
// Update is called once per frame
15     
void Update () {
16     
17     }
18 }


Use this for initialization

Update is called once per frame




trò chơi game bóng rổ full code 33.512 lượt xem

Gõ tìm kiếm nhanh...