private void Awake() { teleportScript = GetComponent <UFOTeleport>(); }
private void Awake() { playerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); teleportScript = transform.parent.parent.GetComponent <UFOTeleport>(); }