Exemple #1
0
    // ================================================================ //
    // MonoBehaviour에서 상속.

    void    Start()
    {
        // 말풍선.
        this.balloon = this.gameObject.AddComponent <chrBalloon>();

        // 대미지를 먹었을 때 효과(임시).
        this.damage_effect = new DamageEffect(this.gameObject);

        // 애니메이션 컴포넌트를 찾아둔다.
        this.anim_player = this.transform.GetComponentInChildren <Animation>();
        if (this.anim_player != null)
        {
            this.anim_player.cullingType = AnimationCullingType.AlwaysAnimate;
        }

        this.current_motion.name  = "";
        this.current_motion.layer = -1;

        this._start();

        this.behavior.start();

        this.previous_position = this.transform.position;
    }
Exemple #2
0
	// ================================================================ //
	// MonoBehaviour에서 상속.

	void	Start()
	{
		// 말풍선.
		this.balloon = this.gameObject.AddComponent<chrBalloon>();

		// 대미지를 먹었을 때 효과(임시).
		this.damage_effect = new DamageEffect(this.gameObject);

		// 애니메이션 컴포넌트를 찾아둔다.
		this.anim_player = this.transform.GetComponentInChildren<Animation>();
		if (this.anim_player != null) {
			this.anim_player.cullingType = AnimationCullingType.AlwaysAnimate;
		}

		this.current_motion.name  = "";
		this.current_motion.layer = -1;

		this._start();

		this.behavior.start();

		this.previous_position = this.transform.position;
	}