Пример #1
0
    // ================================================================ //
    // MonoBehaviour에서 상속.

    void    Awake()
    {
        this.main_camera   = GameObject.FindGameObjectWithTag("MainCamera");
        this.score_counter = this.gameObject.GetComponent <ScoreCounter>();

        this.arrow = GameObject.Instantiate(this.arrowPrefab) as GameObject;

        this.hideArrow();

        this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>();

        this.effect_control   = this.gameObject.GetComponent <VanishEffectControl>();
        this.leave_block_root = this.gameObject.GetComponent <LeaveBlockRoot>();
    }
Пример #2
0
    // ================================================================ //
    // MonoBehaviour에서 상속.
    void Awake()
    {
        this.main_camera   = GameObject.FindGameObjectWithTag("MainCamera");
        this.score_counter = this.gameObject.GetComponent<ScoreCounter>();

        this.arrow = GameObject.Instantiate(this.arrowPrefab) as GameObject;

        this.hideArrow();

        this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>();

        this.effect_control = this.gameObject.GetComponent<VanishEffectControl>();
        this.leave_block_root = this.gameObject.GetComponent<LeaveBlockRoot>();
    }