// ================================================================ // // MonoBehaviour에서의 상속. void Start() { this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent <ScoreDisp>(); this.high_score = GlobalParam.getInstance().getHighScore(); this.last_socre = GlobalParam.getInstance().getLastScore(); this.next_step = STEP.RESULT; this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); }
// ================================================================ // // MonoBehaviour에서 상속. void Start() { this.score.score = 100; this.score.coins = 0; this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent <ScoreDisp>(); this.high_score = GlobalParam.getInstance().getHighScore(); this.score.coins = this.high_score.coins; this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); }
// ================================================================ // // MonoBehaviour からの継承. void Start() { this.score.score = 100; this.score.coins = 0; this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent<ScoreDisp>(); this.high_score = GlobalParam.getInstance().getHighScore(); this.score.coins = this.high_score.coins; this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); }
private Animation rocket_motion; // (rocket)motion--. // ================================================================ // // MonoBehaviour으로부터 상속. void Start() { this.block_root = this.gameObject.GetComponent <BlockRoot>(); this.block_root.create(); this.block_root.initialSetUp(); this.score_counter = this.gameObject.GetComponent <ScoreCounter>(); this.next_step = STEP.PLAY; this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent <ScoreDisp>(); this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); this.rocket_motion = GameObject.Find("rocket_model").gameObject.GetComponentInChildren <Animation>(); //motion }
private Animation rocket_motion; // (rocket)motion--. // ================================================================ // // MonoBehaviour으로부터의 상속. void Start() { this.last.ignite = 0; this.last.block = 0; this.last.score = 0; this.last.total_socre = 0; this.last.islands = 0; this.last.island_size = 0; this.best = this.last; this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent <ScoreDisp>(); this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); this.unito_control = GameObject.FindGameObjectWithTag("Player").GetComponent <unitoControl>(); this.rocket_motion = GameObject.Find("rocket_model").gameObject.GetComponentInChildren <Animation>(); //motion }
void Start() { this.game_status = this.gameObject.GetComponent <GameStatus>(); this.player_control = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerControl>(); this.item_root = this.gameObject.GetComponent <ItemRoot>(); this.player_control.enabled = false; this.item_root.enabled = false; this.game_status.enabled = false; this.score_disp = this.gameObject.GetComponent <ScoreDisp>(); this.step = STEP.NONE; this.next_step = STEP.TITLE; this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); // sound. this.animation = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject.GetComponentInChildren <Animation>(); //motion this.guistyle.fontSize = 64; this.title_rect = new Rect(0, -Screen.height * 0.2f, title_texture.width, title_texture.height); this.start_rect = new Rect(Screen.width / 2 - start_texture.width / 2, Screen.height * 0.8f - start_texture.height / 2, start_texture.width, start_texture.height); this.result_rect = new Rect(Screen.width / 2 - result_texture.width / 2, Screen.height / 2 - result_texture.height / 2, result_texture.width, result_texture.height); this.next_rect = new Rect(Screen.width / 2 - next_texture.width / 2, Screen.height * 0.9f - next_texture.height / 2, next_texture.width, next_texture.height); }
// ================================================================ // // MonoBehaviour からの継承. void Start() { this.block_root = this.gameObject.GetComponent<BlockRoot>(); this.block_root.create(); this.block_root.initialSetUp(); this.score_counter = this.gameObject.GetComponent<ScoreCounter>(); this.next_step = STEP.PLAY; this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent<ScoreDisp>(); this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); this.rocket_motion = GameObject.Find("rocket_model").gameObject.GetComponentInChildren<Animation>(); //motion }
void Start() { this.game_status = this.gameObject.GetComponent<GameStatus>(); this.player_control = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerControl>(); this.item_root = this.gameObject.GetComponent<ItemRoot>(); this.player_control.enabled = false; this.item_root.enabled = false; this.game_status.enabled = false; this.score_disp = this.gameObject.GetComponent<ScoreDisp>(); this.step = STEP.NONE; this.next_step = STEP.TITLE; this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); // sound. this.animation = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject.GetComponentInChildren<Animation>(); //motion this.guistyle.fontSize = 64; this.title_rect = new Rect(0, -Screen.height*0.2f, title_texture.width, title_texture.height); this.start_rect = new Rect(Screen.width/2-start_texture.width/2, Screen.height*0.8f -start_texture.height/2,start_texture.width,start_texture.height); this.result_rect = new Rect(Screen.width/2-result_texture.width/2, Screen.height/2 -result_texture.height/2, result_texture.width, result_texture.height); this.next_rect = new Rect(Screen.width/2-next_texture.width/2, Screen.height*0.9f -next_texture.height/2,next_texture.width,next_texture.height); }
// ================================================================ // // MonoBehaviour에서의 상속. void Start() { this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent<ScoreDisp>(); this.high_score = GlobalParam.getInstance().getHighScore(); this.last_socre = GlobalParam.getInstance().getLastScore(); this.next_step = STEP.RESULT; this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); }
// ================================================================ // // MonoBehaviour からの継承. void Start() { this.last.ignite = 0; this.last.block = 0; this.last.score = 0; this.last.total_socre = 0; this.last.islands = 0; this.last.island_size = 0; this.best = this.last; this.score_disp = GameObject.FindGameObjectWithTag("Score Disp").GetComponent<ScoreDisp>(); this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); this.unito_control = GameObject.FindGameObjectWithTag("Player").GetComponent<unitoControl>(); this.rocket_motion = GameObject.Find("rocket_model").gameObject.GetComponentInChildren<Animation>(); //motion }