// Use this for initialization void Start() { rb = this.GetComponentInParent <Rigidbody>(); cam = Camera.main.gameObject; anim = this.GetComponent <Animator>(); gm = GameObject.Find("GameManager").GetComponent <GameManager>(); gm.EventMan.movePlayerToPosition.AddListener(StartMoveToPosition); bubble = this.GetComponentInChildren <PlayerBubble>(); if (bubble != null) { bubble.Deactivate(); } previousPos = this.transform.position; skinnedMesh = this.GetComponentInChildren <SkinnedMeshRenderer>(); }