예제 #1
0
        private void Awake()
        {
//            DialogMan = GetComponentInChildren<DialogBoxManager>();
            DialogMan   = GameMaster.Instance.GetComponent <DialogBoxManager>();
            UserDataMan = GameMaster.Instance.GetComponent <UserDataManager>();
            NetClient   = GameMaster.Instance.GetComponent <NetworkClient>();
        }
예제 #2
0
        // Use this for initialization
        void Start()
        {
            Client    = GameMaster.Instance.GetComponent <NetworkClient>();
            DialogMan = GameMaster.Instance.GetComponent <DialogBoxManager>();
            Debug.Assert(Client != null);
            Debug.Assert(DialogMan != null);

            var score = FindObjectOfType <MainGameScore>();

            Point = (score != null) ? (int)score.Point: Random.Range(3000, 15000);

            State = GameState.Initialize;
            StartCoroutine(RankingTask());
        }