// Use this for initialization void Start() { bubble = transform.Find("Bubble").gameObject; bubbleProperty = bubble.GetComponent <BubbleProperty>(); bubbleExplosion = transform.Find("BubbleExplosion").gameObject; bubbleExplosionEff = bubbleExplosion.GetComponent <ParticleSystem>(); bubbleExpolision = bubbleExplosion.GetComponent <BubbleExpolisionEff>(); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); property = GetComponent <PlayerStatus>(); bubbleStartObj = transform.Find("BubbleStartObj").gameObject; animator = GetComponent <Animator>(); bubbleProperty = bubbleSet.transform.Find("Bubble").GetComponent <BubbleProperty>(); playerMoveableBubbleSize = bubbleProperty.MaxSize; }
// Use this for initialization void Start() { property = GetComponent <BubbleProperty>(); }