void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "boat") { blockingTentacle.MovePosition(blockingTentacle.transform.position + Vector3.up * 80f, 3f); detectionCollider.enabled = false; } }
public void SendTentacleToPosition(Tentacle tentacle, Vector3 position, Quaternion lookAtRotation) { tentacle.MovePosition(position,tentacleMvmntDelay); tentacle.MoveRotation(lookAtRotation,tentacleMvmntDelay); }
public void SendTentacleToPosition(Tentacle tentacle, Vector3 position, Quaternion lookAtRotation) { tentacle.MovePosition(position, tentacleMvmntDelay); tentacle.MoveRotation(lookAtRotation, tentacleMvmntDelay); }