Example #1
0
 private void Start()
 {
     kinematicBubbleManager = FindObjectOfType <KinematicBubbleManager>();
     slider = GetComponent <Slider>();
     // initialize slider max value
     slider.maxValue = kinematicBubbleManager.GetRemainingBubbleCount() * 60;
 }
Example #2
0
    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();
    }
Example #3
0
 private void Start()
 {
     drawAim = line.GetComponent <DrawAimAndPrePlacement>();
     kinematicBubbleManager = FindObjectOfType <KinematicBubbleManager>();
 }