private void Start() { kinematicBubbleManager = FindObjectOfType <KinematicBubbleManager>(); slider = GetComponent <Slider>(); // initialize slider max value slider.maxValue = kinematicBubbleManager.GetRemainingBubbleCount() * 60; }
private void Awake() { myAnimator = GetComponent <Animator>(); myAnimator.SetBool("BubbleBlow", true); myAnimator.enabled = false; myCollider2D = GetComponent <CapsuleCollider2D>(); myRigidbody2D = GetComponent <Rigidbody2D>(); myRigidbody2D.useFullKinematicContacts = true; InitialRayDirections(); SetColliderDependOnPosition(); kinematicBubbleManager = FindObjectOfType <KinematicBubbleManager>(); kinematicBubbleManager.AddToKinematicList(this); kinematicBubbleManager.SetTimerAndCheckForScroll(); }
private void Start() { drawAim = line.GetComponent <DrawAimAndPrePlacement>(); kinematicBubbleManager = FindObjectOfType <KinematicBubbleManager>(); }