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

    void    Awake()
    {
        this.balloon = BalloonRoot.get().createBalloon();

        this.item_man = ItemManager.getInstance();

        this.item_carrier = new ItemCarrier(this);
    }
Example #2
0
    public static BalloonRoot       get()
    {
        if (BalloonRoot.instance == null)
        {
            BalloonRoot.instance = GameObject.Find("BalloonRoot").GetComponent <BalloonRoot>();
        }

        return(BalloonRoot.instance);
    }
Example #3
0
    // ================================================================ //
    // MonoBehaviour から에서 상속.

    void    Start()
    {
        this.main_camera = GameObject.FindGameObjectWithTag("MainCamera");

        this.balloon = BalloonRoot.get().createBalloon();

        this.timer      = -1.0f;
        this.timer_prev = -1.0f;

        this.billboard.is_enable = false;
        this.billboard.roll      = 0.0f;

        this.initial_position = this.transform.position;
        this.initial_rotation = this.transform.rotation;

        this.is_visible = true;

        this.behavior.start();
    }
Example #4
0
	public ChattyBalloon(BalloonRoot root)
	{
		this.root     = root;
		this.priority = 0;
	}
Example #5
0
	public static BalloonRoot	get()
	{
		if(BalloonRoot.instance == null) {

			BalloonRoot.instance = GameObject.Find("BalloonRoot").GetComponent<BalloonRoot>();
		}

		return(BalloonRoot.instance);
	}
Example #6
0
 public ChattyBalloon(BalloonRoot root)
 {
     this.root     = root;
     this.priority = 0;
 }