// ================================================================ // // MonoBehaviour에서 상속. void Awake() { this.balloon = BalloonRoot.get().createBalloon(); this.item_man = ItemManager.getInstance(); this.item_carrier = new ItemCarrier(this); }
public static BalloonRoot get() { if (BalloonRoot.instance == null) { BalloonRoot.instance = GameObject.Find("BalloonRoot").GetComponent <BalloonRoot>(); } return(BalloonRoot.instance); }
// ================================================================ // // 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(); }
public ChattyBalloon(BalloonRoot root) { this.root = root; this.priority = 0; }
public static BalloonRoot get() { if(BalloonRoot.instance == null) { BalloonRoot.instance = GameObject.Find("BalloonRoot").GetComponent<BalloonRoot>(); } return(BalloonRoot.instance); }