// Start is called before the first frame update
 private void Start()
 {
     _player = GameObject.FindWithTag("Player").GetComponent <PlayerController>();
     _playerGraphicsController =
         GameObject.FindWithTag("PlayerGraphicsController").GetComponent <PlayerGraphicsController>();
     _tongueLineRenderer = GetComponentInChildren <LineRenderer>();
     _tongueBall         = GetComponentInChildren <TongueBall>();
     _tongueBehindSprite = transform.Find("TongueBehind").GetComponent <SpriteRenderer>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     rigidbodyMover     = GetComponent <RigidbodyMover>();
     graphicsController = GetComponentInChildren <PlayerGraphicsController>();
 }