private void Start()
 {
     _roodleController = GetComponent <RoodleController>();
     // _roodleBubbleMove = GetComponent<BubbleMove>();
     _bubbleFollow = GetComponent <BubbleFollow>();
     //RestartCoroutine = Restart();
 }
示例#2
0
    private void Awake()
    {
        _roodleController = GetComponentInParent <RoodleController>();

        if (DataStorage.CheckActiveRoodle(gameObject.name))
        {
            _roodleController.ActiveRoodle = this;
        }
        else
        {
            gameObject.SetActive(false);
        }
    }
示例#3
0
 public void PickUp(RoodleController roodleController)
 {
     _bubbleMove.enabled = true;
     _collider.enabled   = false;
 }